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 (18301,44767,44669,45567,13425,44867,44851,44869,24438,17657,18185,5388,44671,39676,45262,9341,44674,44531,17114,17771,17237,44837,17556,8753,4765,5410,18286,30986,45229,18652,24441,44878,44775,18650,30135,13,19057,45516,24412,45277,44835,18719,17335,45421,45517,44865,44745,45180,36472,45072,17278,45042,44836,17981,44768,45051,10402,30963,31354,5259,17848,18894,18981,18794,5993,6609,44884,24411,45518,32454)
Unknown column 'np.person' in 'where clause'