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 (44875,24411,4765,44855,3,44845,44894,45180,17092,44868,17556,45051,17237,18794,44865,37267,17527,45515,45567,44851,37057,16935,17904,44867,45043,45262,13425,44775,18172,14622,44873,18185,45277,17657,45517,44848,5388,17601,44866,16885,18286,13922,24441,24438,45518,17981,45177,45561,24412,44766,44835,17835,9341,34194,17278,17335,44687,19078,18650,18301,18981,44856,44764,18279,18900,18446,32454,18719,44837,14402)
Unknown column 'np.person' in 'where clause'