Added a no solution found print out in case the query fails