Notice: Query failed: 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 xorder asc limit 0,1' at line 1 SQL: select * from en_energy_app where xpublish='yes' and fcategoryid='' and xorder> order by xorder asc limit 0,1 in /home/0a/L03050/include/php_script/Database/MySQL.php on line 44 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/0a/L03050/include/php_script/Database/MySQL.php on line 70   Notice: Query failed: 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 xorder desc limit 0,1' at line 1 SQL: select * from en_energy_app where xpublish='yes' and fcategoryid='' and xorder< order by xorder desc limit 0,1 in /home/0a/L03050/include/php_script/Database/MySQL.php on line 44 Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/0a/L03050/include/php_script/Database/MySQL.php on line 70