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 (44669,5388,17657,17835,45042,17601,30986,18185,18237,18981,44689,44854,44531,44869,45561,18301,45262,18648,18286,19078,44878,34194,44762,44711,44865,44870,17335,19057,45286,44848,30963,13,44867,24438,44745,18427,39676,18279,44851,13425,17904,18172,45518,44765,18430,37057,32454,4686,44775,17755,45421,44687,44866,45229,18572,44835,17848,44768,44873,17278,18446,18652,44671,44674,18900,44766,5259,44845,10402,17839)
Unknown column 'np.person' in 'where clause'