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 (9341,45516,17351,31354,4686,18648,24411,18301,17556,14622,30963,4765,17755,18430,44853,44689,18688,39676,5259,17848,45567,17527,13,18237,45262,44685,18279,22509,17009,34194,19057,45515,28313,5993,44863,44768,18353,18042,44835,44767,17703,13922,6609,44855,18719,44861,44764,44865,13425,17114,17756,5388,44851,44858,44849,37057,18572,18652,45043,30986,44873,45286,36472,16885,45518,45177,18996,14402,17335,45517)
Unknown column 'np.person' in 'where clause'