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