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 (31354,17335,44835,44767,44687,28530,44765,17278,45042,9341,45561,44745,18652,13425,14622,44884,44531,45262,5388,18279,44853,24412,28313,6862,30986,18996,18688,45346,45051,44870,36472,45072,22509,37267,5993,44845,17703,18427,44878,45177,18794,30963,17848,44685,30135,18981,16935,16885,18237,3883,45043,44762,44849,18353,18301,17904,45421,44689,17755,44858,17657,44848,18572,13,17756,17114,44867,45277,18900,17092)
Unknown column 'np.person' in 'where clause'