not a valid subject

SQL1 is SELECT id, name, alpha, bold, bodytext, active, meta, intro, plural FROM subjects WHERE name='Beg Your Pardon' OR plural='Beg Your Pardon' ORDER BY alpha DESC LIMIT 1
SQL2 is
SQL3 is SELECT image_id from image_data where property_type='editorial' AND image_id IN (158214, 153560, 146278, 145879, 143456, 139704, 138396, 116837, 114490, 112962, 112221, 109172, 109023, 86399, 85991, 85192, 83887, 82632, 78439, 78267, 65719, 62588, 47536, 45629, 38046, 35878, 33535, 31228, 26158, 24455, 21891) 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 ( [158214] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 149 ) ) [153560] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2017 [viewable] => 2017 [property] => 149 ) ) [146278] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 149 ) ) [145879] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 160 ) ) [143456] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 141 ) ) [139704] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 149 ) ) [138396] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2016 [viewable] => 2016 [property] => 94 ) ) [116837] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 141 ) ) [114490] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 171 ) ) [112962] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 94 ) ) [112221] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2014 [viewable] => 2014 [property] => 149 ) ) [109172] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1992 [viewable] => 1992 [property] => 172 ) ) [109023] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1991 [viewable] => 1991 [property] => 172 ) ) [86399] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1989 [viewable] => 1989 [property] => 169 ) ) [85991] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1988 [viewable] => 1988 [property] => 169 ) ) [85192] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1987 [viewable] => 1987 [property] => 169 ) ) [83887] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1986 [viewable] => 1986 [property] => 169 ) ) [82632] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1984 [viewable] => 1984 [property] => 169 ) ) [78439] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1981 [viewable] => 2014 [property] => 169 ) ) [78267] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1981 [viewable] => 2013 [property] => 169 ) ) [65719] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 141 ) ) [62588] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2011 [viewable] => 2011 [property] => 144 ) ) [47536] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2016 [property] => 131 ) ) [45629] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2010 [viewable] => 2010 [property] => 139 ) ) [38046] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 94 ) ) [35878] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2013 [property] => 131 ) ) [33535] => Array ( [weight] => 2 [attrs] => Array ( [published] => 1990 [viewable] => 2016 [property] => 136 ) ) [31228] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2009 [viewable] => 2009 [property] => 94 ) ) [26158] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 94 ) ) [24455] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2013 [property] => 81 ) ) [21891] => Array ( [weight] => 2 [attrs] => Array ( [published] => 2008 [viewable] => 2008 [property] => 94 ) ) ) [total] => 31 [total_found] => 31 [time] => 0.000 [words] => Array ( [beg] => Array ( [docs] => 526 [hits] => 667 ) [your] => Array ( [docs] => 21512 [hits] => 46603 ) [pardon] => Array ( [docs] => 322 [hits] => 576 ) ) )

158214, 153560, 146278, 145879, 143456, 139704, 138396, 116837, 114490, 112962, 112221, 109172, 109023, 86399, 85991, 85192, 83887, 82632, 78439, 78267, 65719, 62588, 47536, 45629, 38046, 35878, 33535, 31228, 26158, 24455, 21891