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 (44851,45042,44687,9341,18427,18996,44671,10402,28313,17703,44856,44873,24441,44739,17114,18650,45043,37057,17657,17492,44853,18430,44869,6862,18794,44767,24438,3,44866,6875,18172,5259,44845,18185,14622,17756,18042,19057,44835,17848,17351,13425,28530,45051,18981,3883,17092,45072,44689,45516,44531,39676,44863,44868,14402,44711,18648,44849,17835,45561,18719,44765,44837,44865,45346,44894,31354,45567,17278,18688)
Unknown column 'np.person' in 'where clause'