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 (44884,24441,45051,17703,17556,44863,44745,44687,9341,18688,44851,45180,6875,45043,28313,34194,44861,44870,17657,14402,24412,44866,44858,30963,30986,17848,18719,32454,31354,19057,44765,44894,17237,37267,17114,18650,18996,6609,44671,44849,14622,3,37057,44875,13988,18185,18172,18981,17756,18572,44873,44836,45229,44640,17755,13,19078,36472,44868,44855,44689,44837,18353,17492,44856,17527,18042,17009,45518,45561)
Unknown column 'np.person' in 'where clause'