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,44711,18894,17848,44848,30135,17835,4686,44854,44858,17981,44767,9341,30986,45180,34194,44853,44687,18286,5388,44884,18446,44640,14402,44765,10402,17756,44851,6609,17527,17492,45043,44775,17556,17839,18650,17237,45517,17904,44849,44762,14622,5259,18572,44866,44685,37267,18648,24412,44845,18794,17278,45286,18981,44869,45421,45516,16885,43800,44674,45561,17351,44764,19057,18172,45515,44856,24441,3883,31354)
Unknown column 'np.person' in 'where clause'