not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Stock Broker' OR plural='Stock Broker' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='editorial' AND image_id IN (147779, 102285, 96294, 85597, 70896, 70803, 70321, 67237, 65210, 54310, 27323, 7100, 970) LIMIT 1

Array ( [error] => [warning] => [status] => 0 [fields] => Array ( [0] => keywords [1] => participants [2] => setting [3] => caption ) [attrs] => Array ( [published] => 2 [viewable] => 2 [property] => 1 ) [matches] => Array ( [147779] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 146 ) ) [102285] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2013 [viewable] => 2013 [property] => 146 ) ) [96294] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2013 [viewable] => 2013 [property] => 13 ) ) [85597] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2012 [viewable] => 2012 [property] => 141 ) ) [70896] => Array ( [weight] => 3 [attrs] => Array ( [published] => 1980 [viewable] => 1980 [property] => 13 ) ) [70803] => Array ( [weight] => 4 [attrs] => Array ( [published] => 1999 [viewable] => 1999 [property] => 13 ) ) [70321] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1999 [viewable] => 1999 [property] => 13 ) ) [67237] => Array ( [weight] => 1 [attrs] => Array ( [published] => 1992 [viewable] => 1992 [property] => 13 ) ) [65210] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 54 ) ) [54310] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 13 ) ) [27323] => Array ( [weight] => 1 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 96 ) ) [7100] => Array ( [weight] => 3 [attrs] => Array ( [published] => 2004 [viewable] => 2004 [property] => 13 ) ) [970] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2002 [viewable] => 2002 [property] => 13 ) ) ) [total] => 13 [total_found] => 13 [time] => 0.000 [words] => Array ( [stock] => Array ( [docs] => 831 [hits] => 1381 ) [broker] => Array ( [docs] => 179 [hits] => 263 ) ) )

147779, 102285, 96294, 85597, 70896, 70803, 70321, 67237, 65210, 54310, 27323, 7100, 970