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 (17351,6782,13922,44768,44868,37267,17092,14622,44836,18042,19078,17839,18427,44775,43800,24441,44671,44837,44835,6875,45518,44853,18286,13988,18652,18650,30135,44711,18446,17703,4765,44674,18185,44765,17556,17278,44875,44884,17835,44762,44863,30986,45042,18430,3,17657,5993,45043,17114,13425,13,44855,17009,44869,18572,45286,14402,45515,17527,18981,44851,18900,17981,44894,6609,45229,6862,17237,10402,18894)
Unknown column 'np.person' in 'where clause'