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