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 (13425,18279,13,22509,24441,45515,44869,44867,45043,44775,18572,18996,44873,18185,44848,44854,4765,17556,44855,31354,45051,14402,44863,44845,17848,44766,18652,18794,45277,18172,17009,14622,45518,17703,44856,45072,5259,5410,36472,9341,37267,18237,24412,44685,44870,17981,17839,24411,44849,18894,44767,45421,17237,17771,44739,18650,18430,45262,44764,44669,17278,37057,44861,18688,32454,18446,45561,13988,28313,44868)
Unknown column 'np.person' in 'where clause'