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 (45346,19078,17835,3883,18446,5388,44685,45229,44711,13988,13,6875,17657,4686,44689,17755,18042,44873,14402,18172,17278,44640,44745,28313,44875,44861,6609,44868,44765,45286,18185,44687,17237,44870,13425,45518,5410,17839,44669,45262,13922,45516,18688,32454,6782,44855,45567,45043,17703,44739,4765,45421,37267,6862,16935,44767,18981,44768,44835,14622,44867,17904,30963,44764,18652,17351,16885,44674,45515,17009)
Unknown column 'np.person' in 'where clause'