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 (17601,17981,44687,18042,17335,18996,17556,19078,44745,45421,44858,18652,45051,44854,17092,44836,44711,24412,22509,18353,17771,44873,44884,45346,17848,18794,44837,9341,5993,13922,18648,28313,44768,36472,45072,18650,13988,24438,45567,39676,6609,45517,44835,17492,18719,18430,34194,44894,30963,44855,18286,5259,16885,18301,17755,44853,45518,18279,17237,44867,13,24411,44762,44878,44739,17756,17703,17835,17114,44863)
Unknown column 'np.person' in 'where clause'