Notice: Undefined index: id in /var/www/vhosts/ on line 31

WordPress database error: [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 '' at line 1]
SELECT job_name FROM wp_projects WHERE id=

Notice: Undefined offset: 0 in /var/www/vhosts/ on line 17

Notice: Trying to get property 'job_name' of non-object in /var/www/vhosts/ on line 17