mediaUpl.php -> SELECT * FROM ads_t WHERE acctid= AND catid= AND session_id ='7323b801d1b4521664278ad656986c18' AND orgid= ORDER BY created DESC

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND catid= AND session_id ='7323b801d1b4521664278ad656986c18' ...' at line 3 in /sysdisk/html/vo/include/dbfunc.php:155 Stack trace: #0 /sysdisk/html/vo/include/dbfunc.php(155): mysqli_query(Object(mysqli), 'SELECT * FROM a...') #1 /sysdisk/html/vo/include/igfunc.php(726): DB_sql->query('SELECT * FROM a...') #2 /sysdisk/html/vo/ads/inc/adsfunc.php(132): runqry(Object(DB_sql), 'SELECT * FROM a...') #3 /sysdisk/html/vo/media/inc/uplscrn.php(39): checkAdsID() #4 /sysdisk/html/vo/mediaUpl.php(4): include('/sysdisk/html/v...') #5 {main} thrown in /sysdisk/html/vo/include/dbfunc.php on line 155