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='617f7b4373092620e1bb0edcfe192f24'' at line 1