SELECT * FROM horses WHERE horseid = 0 AND customerid = '8984' AND horse_draft != 'Draft'

Truncated incorrect INTEGER value: horse-profile.php