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 'AND basketSession='35521fd41f880da0d98e5d7e3210da8f'' at line 1