Warning: Undefined array key "userID" in /home/systemdecorcom/public_html/sg/code/prospect.php on line 9
SELECT * FROM sgc_prospect WHERE vendedor_id <> ORDER BY criacao ASC LIMIT 1
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 'ORDER BY criacao ASC LIMIT 1' at line 1 in /home/systemdecorcom/public_html/sg/model/MySQL.php:38
Stack trace:
#0 /home/systemdecorcom/public_html/sg/model/MySQL.php(38): mysqli_query(Object(mysqli), 'SELECT * FROM s...')
#1 /home/systemdecorcom/public_html/sg/code/prospect.php(11): MySQL->query('SELECT * FROM s...')
#2 {main}
thrown in /home/systemdecorcom/public_html/sg/model/MySQL.php on line 38