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