Warning: Undefined variable $sqlstr in /home/toncu/public_html/photos/selectrecords.php on line 75

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near "ORDER": syntax error in /home/toncu/public_html/photos/selectrecords.php:79 Stack trace: #0 /home/toncu/public_html/photos/selectrecords.php(79): PDO->query() #1 /home/toncu/public_html/common-photos/search-body.php(44): include('/home/toncu/pub...') #2 /home/toncu/public_html/photos/index.php(51): include('/home/toncu/pub...') #3 {main} thrown in /home/toncu/public_html/photos/selectrecords.php on line 79