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 (17848,44869,37267,44687,17556,44884,13425,44685,44766,45043,17492,43800,32454,39676,45518,34194,8753,24411,6862,44764,44836,4686,45180,18286,18185,44856,44873,31354,13988,14622,18650,36472,18430,17601,44865,17835,18688,17981,45516,37057,45072,17771,45561,13,45567,18894,45051,45277,18719,17657,17335,45517,10402,9341,5410,17237,18794,18652,14402,44858,17839,17351,24438,18042,22509,30963,44870,16885,18446,44878)
Unknown column 'np.person' in 'where clause'