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 (4686,19078,18042,3,18172,34194,18650,10402,44766,17114,44856,44868,45229,17756,31354,17351,18688,45180,8753,44640,24411,45346,13,45262,37267,13425,18794,22509,44855,39676,45051,17527,44762,32454,18572,45421,44835,17278,9341,44674,44851,44894,6862,44867,14622,17092,44863,17556,19057,44849,18353,13922,17904,6875,44837,44853,18900,3883,44775,5410,30986,13988,44873,44866,17839,24412,18996,14402,44764,45286)
Unknown column 'np.person' in 'where clause'