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 (17835,45051,3883,18652,24411,24441,30135,18427,44685,44884,37267,17237,18279,37057,5388,45180,17527,18648,44853,44767,17556,32454,13425,45042,44858,45286,19057,6782,44674,45518,44878,18301,19078,44837,18981,44856,18237,28530,45517,30963,44669,18719,14622,13988,45516,44640,6862,18286,44762,10402,44689,44765,17092,44873,45421,45515,17278,17335,44851,6875,5410,17114,45177,39676,17848,44849,16935,44531,45567,31354)
Unknown column 'np.person' in 'where clause'