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 (17114,44873,30963,44894,44767,5259,18430,18572,44765,45516,31354,45567,17009,44870,44762,44856,5993,45286,17556,28530,44836,3,16885,28313,45051,17601,44861,17092,19057,45177,10402,44875,24438,43800,45421,45346,44837,17839,18279,44849,44640,37057,44768,6609,13922,24412,17904,45518,44878,18652,18900,14622,4765,18981,45515,45262,37267,17335,24411,44865,18446,32454,44764,45517,13988,45561,45229,18996,45277,34194)
Unknown column 'np.person' in 'where clause'