Warning: Undefined variable $cid in /home/www/webroot/resume.php on line 24

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 'and pid=66615 order by id desc limit 0,1' at line 1 in /home/www/webroot/resume.php:24 Stack trace: #0 /home/www/webroot/resume.php(24): mysqli->query() #1 {main} thrown in /home/www/webroot/resume.php on line 24