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