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 (17009,45177,43800,36472,17237,31354,6862,34194,18286,5388,44836,44766,17278,45421,17335,17756,18042,45515,45561,44711,17703,44640,44669,18981,14402,45042,44768,28530,30963,18572,13988,44865,18996,18652,22509,44867,18172,18353,44762,44855,45262,17848,44873,44856,44894,45277,44687,9341,13425,24441,17114,18185,45180,44745,44861,44685,44870,44853,19057,45051,4765,5259,44866,18279,16885,44849,24438,18650,18446,44764)
Unknown column 'np.person' in 'where clause'