Database error: Invalid SQL: SELECT page.id,
page.url,
page.meta_title,
page.intitule,
page.couleur,
page.id_portail_page_type,
UNIX_TIMESTAMP(date_creation) as date_creation,
UNIX_TIMESTAMP(date_modification) as date_modification
FROM portail_page AS page,
portail_page_parent as pp
WHERE pp.id_portail_page_parent IS NULL
AND pp.id_portail_page=page.id
AND visible=1
AND id_portail_page_type IN (1, 2, 3, 9)
ORDER BY page.id= DESC, page.id_portail_page_type, pp.ordre
MySQL error:
1064 (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 'DESC, page.id_portail_page_type, pp.ordre' at line 15) Requete: SELECT page.id,
page.url,
page.meta_title,
page.intitule,
page.couleur,
page.id_portail_page_type,
UNIX_TIMESTAMP(date_creation) as date_creation,
UNIX_TIMESTAMP(date_modification) as date_modification
FROM portail_page AS page,
portail_page_parent as pp
WHERE pp.id_portail_page_parent IS NULL
AND pp.id_portail_page=page.id
AND visible=1
AND id_portail_page_type IN (1, 2, 3, 9)
ORDER BY page.id= DESC, page.id_portail_page_type, pp.ordre;
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/site/www.easydroit.fr/class/class.mysql.php on line 183
|