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 (16885,37267,44711,44836,6862,3,45518,18894,45180,44766,44669,37057,18981,17904,44671,44689,44875,31354,18172,18996,6609,44674,45072,24411,18794,32454,44853,13922,17835,44861,45043,44764,5993,44878,16935,30135,45516,44870,18353,18427,44848,18719,45262,44855,45421,5410,5259,45346,44849,44884,45517,9341,44765,18237,13425,17848,43800,6875,18688,17771,44863,18652,13988,44851,17657,28530,34194,17114,4686,44865)
Unknown column 'np.person' in 'where clause'