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