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