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,45561,45517,44884,37057,32454,17839,44689,4686,44878,45421,44870,44745,17601,17114,18427,17848,43800,44865,44858,44861,17492,45286,45043,28530,45042,17981,17335,44671,45262,18996,5259,44674,45051,28313,45516,17703,18794,19078,17237,18237,44875,6782,45180,44856,44764,44685,16885,44848,4765,17278,18688,5410,18430,44873,24441,30135,44687,18446,31354,44845,18042,19057,17904,36472,9341,45229,16935,6875,3)
Unknown column 'np.person' in 'where clause'