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