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 (34194,44674,45262,44745,18794,44531,36472,45043,45567,19057,24412,44854,43800,44869,44835,6782,44849,37267,17848,44837,18427,44768,18652,5259,44765,44884,44870,44687,45177,13,14402,17009,18648,17839,44640,44856,18301,17335,17556,17835,4765,45515,45518,45229,5993,17092,18430,17278,18042,17771,45561,45286,44711,17601,45421,6862,44867,17756,22509,18446,13988,32454,44868,3883,45180,44671,18572,17755,44669,44855)
Unknown column 'np.person' in 'where clause'