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 (43800,18794,16885,45043,44765,45561,5259,14622,44851,44853,17657,45346,22509,44854,44894,44865,34194,44861,44873,45180,5410,18894,44531,17839,44870,44869,13425,37057,24412,44767,44775,17848,30963,6782,45421,17237,45051,24411,44858,17904,28530,18185,37267,18301,44855,30986,17771,17835,44674,44685,44711,18900,44669,5993,3883,18650,19057,44764,18237,6609,44845,45567,17009,18286,45042,45516,24438,32454,45262,10402)
Unknown column 'np.person' in 'where clause'