Fatal error: Uncaught mysqli_sql_exception: 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 'to-open-40-hotels-in-middle-east AND type= AND pub=1 AND trash = 0' at line 1 in /home2/olvehsad/public_html/global/functions/global_functions.php:92
Stack trace:
#0 /home2/olvehsad/public_html/global/functions/global_functions.php(92): mysqli_query(Object(mysqli), 'SELECT id FROM ...')
#1 /home2/olvehsad/public_html/news/index.php(8): isExist('id', 'news', 'id=marriott-to-...')
#2 {main}
thrown in /home2/olvehsad/public_html/global/functions/global_functions.php on line 92