Fatal error: Uncaught PDOException: SQLSTATE[42883]: Undefined function: 7 ERROR: operator does not exist: boolean = integer LINE 6: ...product_images i ON p.id = i.product_id AND i.is_primary = 1 ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. in /var/task/user/includes/functions.php:314 Stack trace: #0 /var/task/user/includes/functions.php(314): PDOStatement->execute() #1 /var/task/user/index.php(9): getRecentProducts(Object(PDO), 8) #2 /var/task/user/api/index.php(4): require('/var/task/user/...') #3 {main} thrown in /var/task/user/includes/functions.php on line 314