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