Unknown column 'alcudia' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = alcudia and session_id = "n4erm683e1edqfsfe80i8q2r24"