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