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 (44858,44671,18688,18427,3883,18286,44835,17771,45517,17904,30986,5388,44767,44739,17237,44766,44845,39676,6609,44848,5993,45421,18301,17835,30135,17556,4686,17848,18650,17492,24411,28313,44685,4765,5259,6875,18652,18185,45346,45262,17703,44531,18981,44711,28530,18794,3,44687,18900,6862,45286,44674,17114,36472,44853,18279,44878,44765,44640,44873,18894,44884,45051,18719,44762,9341,44865,44768,45518,44867)
Unknown column 'np.person' in 'where clause'