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 (44878,17981,45516,44873,44853,18427,6875,17848,18430,36472,30135,18648,30963,24412,44765,44875,18900,28313,44849,44669,8753,17492,45177,37057,31354,44867,22509,18688,18172,44884,44863,44894,45421,45561,18237,45517,24441,44868,45180,44836,18794,16935,3883,45229,5410,17556,32454,44865,34194,5259,17755,3,45515,45286,18719,4765,30986,18572,45072,44856,19078,43800,45042,44674,18042,17756,17092,44870,45346,17771)
Unknown column 'np.person' in 'where clause'