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 (28530,13922,9341,44685,28313,44767,44858,18185,13,32454,17601,39676,24411,44855,44671,44856,45561,44837,18719,18648,44768,18279,18572,18301,18353,17527,45043,45517,17703,44765,18894,45567,44849,44848,18652,44875,17278,19078,45346,18237,43800,45286,44711,17839,16885,4765,4686,44674,17657,44861,17092,37267,44766,18688,44854,44865,18427,44867,17351,36472,17237,22509,45262,17009,8753,17848,17556,17904,44836,45180)
Unknown column 'np.person' in 'where clause'