Warning: Undefined variable $picid in /customers/7/e/4/cdiqooo1c/webroots/sites/httpdocs/picgallery/web.view.photo.php on line 38 Fatal error: Uncaught mysqli_sql_exception: 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 'and status=1' at line 1 in /customers/7/e/4/cdiqooo1c/webroots/sites/httpdocs/include/phpfunctions2.php:27 Stack trace: #0 /customers/7/e/4/cdiqooo1c/webroots/sites/httpdocs/include/phpfunctions2.php(27): mysqli_query(Object(mysqli), 'SELECT count(*)...') #1 /customers/7/e/4/cdiqooo1c/webroots/sites/httpdocs/picgallery/web.view.photo.php(38): getFromSQL('SELECT count(*)...') #2 {main} thrown in /customers/7/e/4/cdiqooo1c/webroots/sites/httpdocs/include/phpfunctions2.php on line 27