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