Warning: Trying to access array offset on value of type bool in /home/winnersy/public_html/index.php on line 9

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 'both,3,5,1,2) ORDER BY id DESC' at line 1 in /home/winnersy/public_html/inc/functions.php:105 Stack trace: #0 /home/winnersy/public_html/inc/functions.php(105): PDOStatement->execute() #1 /home/winnersy/public_html/products.php(61): getSpecialItems('products', ' WHERE cat_id=3...') #2 /home/winnersy/public_html/index.php(26): include('/home/winnersy/...') #3 {main} thrown in /home/winnersy/public_html/inc/functions.php on line 105