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