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 (18996,16885,39676,44640,44765,18353,45177,17114,17092,24411,45262,17771,18900,44836,44863,44531,44853,44878,19057,18185,3,44689,45072,10402,17009,4686,44837,45516,6782,18172,17556,17492,24438,19078,45517,5410,32454,44687,24412,37057,4765,45515,30135,17839,44766,13922,18446,44866,45042,18042,17601,17981,18572,18650,5259,18279,14402,17335,44775,17756,44875,34194,44894,30963,44854,18719,44835,45180,44671,18430)
Unknown column 'np.person' in 'where clause'