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 (14402,3883,44867,18353,6875,45042,44837,45051,18719,45515,44669,22509,18430,44849,17351,37267,44863,45567,44869,44894,45346,18572,13425,44764,45516,44711,17335,44848,44845,44531,17278,44856,45043,44689,44854,44865,28530,44685,5259,43800,18652,28313,45072,34194,16885,17981,44858,30963,31354,18650,17237,44674,44671,17601,18688,37057,44775,18042,30135,24441,17755,45229,17114,10402,45517,17009,18446,18286,17835,17527)
Unknown column 'np.person' in 'where clause'