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