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 (14622,6875,45177,44875,18185,44765,28530,44775,18981,5410,44866,9341,17114,5388,45051,45346,34194,18688,45277,17556,18648,44767,17904,44531,5993,32454,31354,16935,44853,44745,44835,28313,17237,44855,30135,17703,13,18279,44869,18652,44687,45517,45180,13922,14402,4686,44837,17092,18996,44861,44848,17527,24412,18301,18172,43800,17351,18719,18894,17601,45042,17771,17835,18446,44640,17756,44768,36472,37267,18353)
Unknown column 'np.person' in 'where clause'