Notice: Undefined index: p in /var/www/vhosts/ on line 87

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-20,20' at line 17' in /var/www/vhosts/ Stack trace: #0 /var/www/vhosts/ PDO->query('\n\t\t\t\t\tSELECT\n\t\t...') #1 /var/www/vhosts/ sql::returnObjectSQL('\n\t\t\t\t\tSELECT\n\t\t...', 'id') #2 /var/www/vhosts/ include('/var/www/vhosts...') #3 {main} thrown in /var/www/vhosts/ on line 126