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 (18996,45072,19078,44687,44884,18794,18353,3883,44711,16935,13988,44835,45229,5259,6782,44837,17835,45346,45286,45051,45262,31354,44875,45518,17237,18650,32454,44865,17278,16885,44836,14402,45180,18719,39676,30135,13425,44867,45516,4686,44764,44858,17703,45043,45515,44765,18042,17492,17114,43800,6609,18430,17527,17848,18279,3,30963,24441,45042,44640,34194,44845,44849,18894,13,22509,44685,24411,45177,44894)
Unknown column 'np.person' in 'where clause'