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