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 (45286,45277,18996,17278,18237,17703,34194,18650,18572,45567,17848,24411,44865,14402,17771,45043,44848,16935,44687,17492,37267,32454,43800,45518,17601,44711,18900,6862,9341,44674,45229,45346,45042,44884,5993,45051,18286,18688,45561,17755,44873,18719,31354,44689,18430,44853,30986,18652,10402,44767,6875,18353,18172,4765,5259,18185,44531,18794,44858,17351,44863,44856,44878,22509,44766,19057,30135,44870,4686,3883)
Unknown column 'np.person' in 'where clause'