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 (5259,18353,44845,18427,6609,44866,30135,45043,18794,18981,44848,6875,17601,18286,17351,17278,44765,45346,17092,44851,44674,44531,44894,24412,5993,44835,45177,45072,17904,44766,4686,44853,16885,13922,36472,44762,44687,17835,44640,44837,44884,19057,18172,17756,45561,17981,44873,18301,18446,31354,10402,13425,18996,17848,17657,28313,39676,17556,14622,44711,13988,17527,6782,9341,3,44858,18430,17237,44875,18237)
Unknown column 'np.person' in 'where clause'