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 (18794,18900,32454,18427,13988,44671,44775,18301,30986,45515,18648,28530,44837,39676,18185,44856,44674,44851,45051,44767,18981,44689,8753,18688,4686,17657,18719,45516,44745,44865,36472,45180,17703,13922,44870,18446,5410,37267,13,43800,44640,45262,18353,31354,44855,44836,44768,45286,30963,44854,45517,3,17335,17771,44875,45042,44873,45072,45421,17835,30135,44861,17556,17114,3883,44866,5388,44853,45518,6609)
Unknown column 'np.person' in 'where clause'