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='50f1de88aa5e5976f4ce96f7380cf0f5'' at line 1