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 (5993,17237,18430,44685,44853,14402,45286,17771,17835,28313,45051,45421,17756,44775,18185,17839,44868,45180,44851,44531,44873,17556,13922,45277,18279,44865,18042,17278,45177,16885,44878,8753,17601,18900,45072,44767,18172,17009,31354,18996,17114,18446,44863,6782,17092,44762,28530,18353,45346,17335,44848,45518,17981,24411,44870,45042,45043,22509,4686,6609,45229,44858,17351,5259,18981,14622,13988,24441,44764,24412)
Unknown column 'np.person' in 'where clause'