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 (18172,45177,17703,44873,45180,18301,24412,28313,45072,36472,44765,44739,44869,45346,18572,18981,18996,44861,44671,8753,24441,6875,18430,16885,17601,45515,18279,17657,13922,30963,44855,17335,30986,45043,44837,37057,34194,18894,10402,18427,16935,45517,45421,44762,18237,5259,14622,44878,3,17278,17848,18042,6609,44674,44711,32454,3883,17771,45567,18719,18794,44767,44853,44687,18652,44836,45229,44867,44866,6862)
Unknown column 'np.person' in 'where clause'