Fatal error: Uncaught mysqli_sql_exception: 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 '-9' at line 7 in /home/dh_hbennv/puddleandstick.co.uk/App/Repository/EntityRepository.php:164 Stack trace: #0 /home/dh_hbennv/puddleandstick.co.uk/App/Repository/EntityRepository.php(164): mysqli->query(' SELECT \r\n ...') #1 /home/dh_hbennv/puddleandstick.co.uk/App/Repository/Product/ProductRepository.php(207): App\Repository\EntityRepository->findByQuery(' SELECT \r\n ...') #2 /home/dh_hbennv/puddleandstick.co.uk/public/pages/search.php(74): App\Repository\Product\ProductRepository->findByBrand(Object(App\Entity\Brand), -9, 9) #3 {main} thrown in /home/dh_hbennv/puddleandstick.co.uk/App/Repository/EntityRepository.php on line 164