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 (6782,44868,34194,39676,45042,5993,44766,18185,44867,45567,44845,32454,44894,36472,18688,44854,18430,17237,44884,45043,17492,45516,17092,18900,18894,18042,44689,24412,13988,44835,5259,14402,44762,9341,45229,44858,17335,13,37057,17981,22509,16935,17009,45517,18301,16885,18794,17703,45286,44851,45277,18237,18279,10402,30963,45518,6609,44875,45561,44873,44687,18652,18650,44848,18996,17278,19057,3,5388,24441)
Unknown column 'np.person' in 'where clause'