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