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 (17771,18900,45043,14622,36472,44849,17703,44855,32454,44739,45517,13,30986,45561,24411,44669,44863,44853,17904,18688,18353,45346,17601,18648,44868,17981,44866,18301,18446,19078,17237,18427,19057,44687,22509,45072,13988,18981,45277,39676,17556,17835,3883,4765,44856,44878,17351,37057,45518,44775,18042,5410,16935,45180,30963,13425,17756,18652,17092,17278,44671,24441,45421,17009,44768,17335,28530,45229,17657,18794)
Unknown column 'np.person' in 'where clause'