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 (17527,45051,18427,17904,18648,5259,45043,44875,44671,45177,44768,44870,4686,18981,44851,17755,44836,4765,44853,34194,44687,9341,45567,45072,18719,22509,17657,6782,18650,28313,37057,18894,45286,44866,18353,44762,18652,17492,18172,44531,44855,18446,44868,17848,10402,45180,44854,44745,45262,19078,28530,18042,44869,19057,44685,44674,44739,17981,44867,18286,13,24441,44711,14622,24412,17237,18237,17278,45229,45042)
Unknown column 'np.person' in 'where clause'