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 (17755,16885,17904,45286,44854,9341,44856,44873,44837,44858,44775,18172,18185,18652,44745,45277,45561,17771,44764,18719,44768,28313,44851,39676,44674,44762,18427,17556,17601,44739,44765,18353,17278,24441,4686,44845,17092,13922,17657,44863,5410,44855,44767,43800,17835,30963,24412,36472,17848,44870,8753,45517,18650,44711,34194,31354,28530,5388,17009,13,18446,44875,5259,6875,4765,45262,44689,18900,17756,13988)
Unknown column 'np.person' in 'where clause'