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