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