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