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