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 (44861,18894,17904,17351,45517,44711,28313,44855,5410,44851,45262,45051,16935,17556,6609,18286,18652,17755,44669,44765,31354,9341,14402,44674,4765,44884,45346,18446,17527,44858,45286,45567,44689,45180,45042,13922,44766,6782,4686,18237,44837,44836,44866,17492,44853,5259,13425,17278,44531,16885,44687,17839,44867,6862,18981,13,45043,17848,17657,18185,18353,24438,39676,5993,28530,17335,44745,44671,18279,44849)
Unknown column 'np.person' in 'where clause'