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 (17492,45072,3883,45346,44640,45421,45518,44768,18688,24441,34194,6862,43800,44865,22509,44878,44845,5259,14622,17278,45286,30986,18719,44870,18237,18301,17755,45515,17756,37057,44745,44894,44674,44689,18572,44863,18981,44711,44884,17237,45516,18794,44861,13,37267,18650,45277,44869,44866,8753,18286,18446,17835,45262,31354,44685,18427,44836,18279,10402,44837,44671,28313,18652,45180,13425,18996,17657,17703,18185)
Unknown column 'np.person' in 'where clause'