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