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