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