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 (18301,18185,18237,9341,44671,44863,44856,37267,44866,44894,17009,18572,44640,18446,17492,19057,44869,6875,31354,18719,45518,44870,14402,17755,45042,13,44868,18430,44855,22509,28313,45346,32454,17556,17237,44687,44854,5388,17835,18042,44867,17278,17839,6862,17114,18650,13425,44765,45180,18688,34194,17904,44853,18279,45262,44739,17092,18981,44531,44837,16885,6609,10402,44745,45051,44848,45277,45567,24411,44768)
Unknown column 'np.person' in 'where clause'