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 (18719,45180,18353,16885,17009,44861,14402,44853,44878,44765,37267,44764,43800,45518,17278,17755,17237,13425,39676,44766,16935,30963,44863,34194,18237,44870,45516,17601,44837,17556,44531,18572,44894,44849,17839,44767,17771,44711,44848,45517,45277,44854,44687,4686,45286,17114,44739,19078,10402,18652,17351,44745,5259,30135,13988,18286,44856,44867,5993,36472,44865,44845,18427,18794,45072,18981,31354,13,45229,13922)
Unknown column 'np.person' in 'where clause'