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 (45516,17703,18652,44858,17601,30963,17237,24441,6875,18996,18286,44739,44674,18648,44848,44671,44640,17278,18900,31354,17839,22509,44878,39676,18430,17657,16885,44884,18301,17556,18353,37057,45051,45277,17771,8753,18185,44865,44689,18446,24411,17755,44836,16935,5259,45072,10402,18794,18279,45517,17092,17848,4686,45262,45561,44866,18688,6782,5388,45421,44764,45043,45346,44766,18172,44711,17981,18650,13,3883)
Unknown column 'np.person' in 'where clause'