No se completó la consulta: "SELECT id_galeria FROM lat_galeria WHERE id_coleccion=12 AND id_version=1 AND id_codigo= AND tin_tipo=1 ORDER BY int_orden ASC": You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND tin_tipo=1 ORDER BY int_orden ASC' at line 1