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 (17981,19078,18894,44854,28313,18353,45051,6782,45516,44745,44775,18172,24441,45072,17335,17351,24412,44765,45177,30135,44867,16885,45567,6609,44739,17009,17756,18279,22509,17703,17492,45421,17839,32454,44870,17755,44848,44894,3,39676,24438,44875,5259,28530,44855,18652,36472,13988,9341,45286,44865,45180,18996,44863,5388,44878,44856,17904,44858,44764,18446,44849,14402,37057,13425,44768,18286,13,44835,44845)
Unknown column 'np.person' in 'where clause'