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 (45517,18652,8753,9341,45043,18719,18286,44531,44866,5993,17756,31354,44765,18894,17835,44837,37267,44869,18572,18237,18430,44858,45515,10402,44640,18648,13425,44745,19078,45516,44875,44687,6609,17839,34194,30986,36472,17492,6862,17009,28313,44873,44894,44836,18446,14622,43800,17335,45051,16935,18042,3,44870,45421,45042,18981,44711,24411,45346,44674,44884,17237,45262,6875,5388,44835,44762,44767,17527,44861)
Unknown column 'np.person' in 'where clause'