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 (44837,43800,18572,45043,17092,18286,18279,45518,17755,44711,5388,28313,18688,44853,30963,17835,18301,44854,18650,17771,16885,18427,44765,18719,24441,18652,13922,44685,44671,17278,44870,28530,18981,18900,18430,44861,45561,5259,17981,17556,45421,44845,44764,44868,44855,17492,18794,17904,45229,45262,17657,31354,5993,45051,44863,6875,45517,45042,4765,44762,44875,18042,17009,44873,44640,44884,18172,13425,17335,17351)
Unknown column 'np.person' in 'where clause'