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 ''παρασημο γεωργιου Α'' ORDER BY ID DESC' at line 1
query=SELECT ID FROM basket WHERE session_id='2a63cdee2bb472734d50d9a4d06e956a' AND product_id='παρασημο γεωργιου Α'' ORDER BY ID DESC