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 (37267,45051,44861,18185,17092,45262,5410,18652,24438,44855,18719,44531,44858,18446,44863,44867,28313,17601,17492,44640,18900,18996,3,14402,45043,19078,45567,44836,18572,5388,17237,17703,44845,4765,13922,44856,18279,39676,45177,44878,18353,18650,28530,18042,17839,45421,13425,18286,9341,45286,18427,44671,8753,44854,17278,17904,44674,18981,17527,17657,18794,44837,17755,17771,18894,44739,36472,44765,17848,5259)
Unknown column 'np.person' in 'where clause'