( ! ) Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'Agostino' or cn='Gigi D'Agostino') order by id desc limit 1' at line 1 in /home/poppiano.org/public_html/pdo.php on line 942
( ! ) PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'Agostino' or cn='Gigi D'Agostino') order by id desc limit 1' at line 1 in /home/poppiano.org/public_html/pdo.php on line 942
Call Stack
#TimeMemoryFunctionLocation
10.0006429616{main}( ).../index.php:0
20.2535518136getval( $sql = 'select pic from artist where (artist=\'Gigi D\'Agostino\' or cn=\'Gigi D\'Agostino\') order by id desc limit 1' ).../index.php:680
30.2548518136query( $query = 'select pic from artist where (artist=\'Gigi D\'Agostino\' or cn=\'Gigi D\'Agostino\') order by id desc limit 1', $fetchMode = ??? ).../pdo.php:942