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 (44674,34194,18652,44689,19078,45515,18894,16885,44875,45421,5388,44855,44767,45051,17755,43800,17657,45229,17114,18650,17601,3,45516,6862,44836,17756,28530,44687,18172,44869,8753,17835,44870,14402,24412,44837,44745,18185,17335,37267,13,44853,44865,32454,18572,44863,44671,17237,44739,18042,18794,17009,5410,18981,9341,5993,44835,18427,44867,18286,18900,44765,30963,13988,18279,45346,17492,45277,44894,13425)
Unknown column 'np.person' in 'where clause'