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 (6609,44873,4765,17351,18286,39676,18648,10402,17527,17703,18301,18427,18794,44835,44837,24438,24441,45262,5993,18894,44848,44861,3,17556,30963,44745,17492,44767,45346,17756,45229,44851,18237,31354,36472,17335,18996,44868,44687,37267,44711,32454,44856,18185,5388,24412,17092,45072,28313,18900,45567,13,45286,18719,44671,4686,14402,13922,30986,44762,18430,44845,44768,17657,44878,44836,44853,44875,44855,44858)
Unknown column 'np.person' in 'where clause'