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