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 (5993,44861,36472,44836,28530,17657,45229,17601,28313,17904,13988,18286,44851,30986,44711,8753,17981,18648,17492,44865,17114,6875,9341,18719,44849,44884,44674,18301,18894,44766,24441,44768,6609,17703,45042,44868,44875,24411,18172,45421,44866,18688,44762,17848,17237,45561,17755,18185,30963,45262,18237,18900,44845,24412,34194,10402,45072,44894,18650,4765,45517,18353,4686,14402,44863,13,44835,44858,18279,16885)
Unknown column 'np.person' in 'where clause'