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