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 (45517,44764,5410,17657,17009,17556,45346,17601,45262,30135,6875,18719,17771,44866,44687,44775,3,44873,45051,4686,3883,44845,18237,17092,45277,44868,45421,18688,44861,18427,44835,17351,44640,44858,44855,13,18652,4765,44837,31354,39676,17527,16885,17755,44669,37267,17848,6862,45072,32454,44689,24441,45286,44671,44870,13922,18648,8753,44674,44869,14402,44854,18981,18353,18996,37057,44849,44867,44851,44768)
Unknown column 'np.person' in 'where clause'