fixed a bug in sql query with working horoscope rows