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