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 (37267,17771,37057,36472,44765,44870,17657,45043,13922,30986,18427,5410,18650,44854,44671,44766,45561,44835,44845,18688,18430,45518,44689,44711,44866,24412,45072,45346,45277,16935,16885,18794,22509,43800,18286,18900,18996,44745,31354,18648,17009,39676,8753,30963,6875,3883,14402,17981,5259,44884,17335,45286,17092,44848,17839,45180,17755,45051,44867,17703,44836,44851,17835,18446,44762,45229,28313,18185,17351,45177)
Unknown column 'np.person' in 'where clause'