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 (24411,44836,44866,4686,4765,44878,44765,45516,6782,44768,44863,44856,44848,45051,5410,18286,45042,30963,45277,28313,45262,44764,45180,18572,17835,19078,44745,17848,18301,44868,45229,43800,45515,44835,44531,30135,44854,8753,44762,45421,44689,34194,44869,14402,44853,18237,36472,18996,45561,17771,44845,17009,6862,17556,13425,18719,18652,13922,18172,37267,17351,18894,5388,44851,3,45567,44870,44855,18688,19057)
Unknown column 'np.person' in 'where clause'