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