Error while executing the query
SELECT o.id,
o.titre_fr AS titre,
o.client_fr AS client,
p.filename,
p.id AS id_photo
FROM objets AS o, photos AS p
WHERE p.id_prod = o.id
AND p.ordre = (
SELECT MIN(p2.ordre) FROM photos AS p2 WHERE p2.id_prod = o.id
)
AND id_cat = '2'
AND visible = 1
ORDER BY ordre_cat
LIMIT -5, 5
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 '-5, 5' at line 14
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/atelierm/www/objet.php on line 314
Objet non trouvé - Atelier Mariotti