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 ') OR ISNULL(cat.cat) ORDER by lst.sort' at line 3 Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given in /home/g/germanda/portal-obyavlenij.ru/public_html/includes/compile/functions.php on line 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 ') OR ISNULL(cat.cat) ORDER by lst.sort' at line 3field id is empty