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 (5410,45043,45567,17839,44849,17904,18794,30986,44685,18996,44762,34194,5993,44835,44853,17756,45517,39676,13,22509,37057,10402,36472,18353,44865,44870,44764,45346,44669,17848,44869,13922,45051,5259,6609,44863,18286,18688,18650,16935,44711,45515,43800,18301,44767,17755,19078,44861,18572,17703,13988,45518,24411,17527,32454,17092,24438,18237,18648,18430,45177,45042,17771,17601,18894,44866,6862,45421,44768,18172)
Unknown column 'np.person' in 'where clause'