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 (44762,10402,9341,44711,32454,44894,45177,28530,13425,44855,22509,8753,17771,44837,44689,45346,17848,44640,45517,17756,17839,45518,34194,16935,44687,4765,18894,18648,17092,6875,44835,45286,39676,17556,19078,6862,44851,17492,18650,45277,17237,24412,44836,44671,45421,17527,5993,45051,17904,44878,17009,18996,44739,18353,30986,36472,44856,44848,18794,44854,45567,17335,17835,45561,18900,44858,45043,6782,5259,44764)
Unknown column 'np.person' in 'where clause'