DB Error: Bad SQL Query: select id, familia, cant_fotos
FROM 4images_spmamiferos
where id > AND cant_fotos > 0
ORDER BY id
LIMIT 1 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 'AND cant_fotos > 0
ORDER BY id
LIMIT 1' at line 3
DB Error: Bad SQL Query: select id, familia, cant_fotos
FROM 4images_spmamiferos
where id < AND cant_fotos > 0
ORDER BY id DESC
LIMIT 1 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 'AND cant_fotos > 0
ORDER BY id DESC
LIMIT 1' at line 3 - FotoNat.org