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 (44671,45180,44766,45051,44854,37267,31354,5410,18688,44669,17351,24412,18996,44765,10402,45561,45277,5259,17556,44745,44767,17009,44849,17839,17092,28313,17904,44853,44863,24441,22509,13425,44865,17848,18794,24438,8753,18353,17835,45042,45516,45515,44687,45286,18427,18719,44837,44768,45421,18301,17278,44689,44878,6782,18572,17492,30963,44875,17981,18446,13922,44866,44869,44836,17237,18894,43800,45262,44856,45567)
Unknown column 'np.person' in 'where clause'