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