View My Profile as:

Has been an Equestrian Life Member since December 31, 1969, . You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND status=1' at line 4
SQL: SELECT h.id AS HORSEID, h.barn_name, h.show_name, h.sex, h.breed, h.breed2 FROM horses h WHERE h.userid= AND status=1