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 ', '%' ) order by rand()' at line 1 in /var/www/vhosts/workandhire.com/httpdocs/portfolio/pagination.php:258 Stack trace: #0 /var/www/vhosts/workandhire.com/httpdocs/portfolio/pagination.php(258): PDOStatement->execute() #1 /var/www/vhosts/workandhire.com/httpdocs/templates/t_freelancedservice.html(1914): new_Pagination->getExecuteQuery() #2 /var/www/vhosts/workandhire.com/httpdocs/templates/index.html(562): include('...') #3 /var/www/vhosts/workandhire.com/httpdocs/freelancedservice.php(742): include('...') #4 {main} thrown in /var/www/vhosts/workandhire.com/httpdocs/portfolio/pagination.php on line 258