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