Notice: Trying to get property 'CategoryID' of non-object in C:\inetpub\wwwroot\scopemonster.com\search-results.php on line 39

Notice: Trying to get property 'CategoryID' of non-object in C:\inetpub\wwwroot\scopemonster.com\search-results.php on line 40

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 'GROUP BY ProductID LIMIT 12 OFFSET 0' at line 1 in C:\inetpub\wwwroot\scopemonster.com\classes\product.class.php:54 Stack trace: #0 C:\inetpub\wwwroot\scopemonster.com\classes\product.class.php(54): PDOStatement->execute(Array) #1 C:\inetpub\wwwroot\scopemonster.com\search-results.php(107): Product->searchMultiSQL('SELECT SQL_CALC...', 'SELECT FOUND_RO...') #2 {main} thrown in C:\inetpub\wwwroot\scopemonster.com\classes\product.class.php on line 54