Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (24412,5388,18894,45346,5993,19078,18353,17492,30135,45567,18900,44875,45515,44685,4686,44865,13,17771,44878,19057,18688,6782,17237,5259,45262,44894,17009,44669,24411,45286,45516,45561,44867,17278,44739,44851,45229,39676,6875,14402,17601,17335,44858,44837,18652,44674,34194,13922,18430,18185,37267,8753,44531,36472,44873,43800,45277,45180,18981,18648,45518,44767,18237,44711,44869,6609,45517,18572,44836,6862)
Unknown column 'np.person' in 'where clause'