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 (18688,45516,18185,45346,44869,18996,44866,17756,39676,44863,36472,44766,5259,45567,22509,17492,6862,44689,37057,44849,17351,45515,30986,44878,45051,14622,17092,18648,4686,5993,17009,3883,44858,17904,45277,44640,18794,44870,4765,44884,44745,44767,45043,44768,45517,44855,44669,44865,28530,45561,24441,18652,44836,18894,44531,45229,30135,5388,18446,9341,13,17335,32454,44873,17755,18650,44765,45072,13922,44875)
Unknown column 'np.person' in 'where clause'