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 (17351,18719,44837,5259,44858,44869,44856,44689,44835,44867,24412,45286,17335,9341,45567,14622,16885,44848,17556,44767,13922,37267,31354,44873,44836,10402,18185,45518,18301,17114,44865,44764,30963,28313,36472,5388,18688,18648,13,44766,44855,6875,24411,44745,18794,18981,6782,18650,32454,45277,17601,44762,45346,45516,45421,3,18652,44845,18172,44870,45072,44671,44878,17009,19078,44775,44685,44863,18353,45042)
Unknown column 'np.person' in 'where clause'