Error Query en select * from imagenes_de_articulos where sys_delete is null and articulo = order by 0+orden asc You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by 0+orden asc' at line 1