If QGIS tells you “no result set” while you are playing around with PostGIS query layers. If your query works fine in the DB Manager but “Load as Layer” fails (and not silently with “invalid PostgreSQL layer”).
Try turning it off and on again. Restart QGIS. It just might save you many minutes of unreasonable frustration.