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 (19078,13425,45516,16885,44854,34194,45561,18286,18894,5259,17755,17335,13922,17771,6782,45346,17904,45042,32454,45567,44739,44671,44531,44745,17756,17092,44868,9341,22509,45177,44855,18279,17981,18981,44765,13,24412,18185,3883,5388,6862,18688,44863,18900,44640,45515,18648,39676,37267,17237,44870,37057,4686,8753,45051,44851,18042,4765,44867,44873,44894,14402,18301,17848,18237,17278,18996,24438,30963,17556)
Unknown column 'np.person' in 'where clause'