Not able to execute the query: select product_id from tbl_products where product_title='it's christmas' You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's christmas'' at line 1