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 (18185,44858,44845,44640,5410,44854,5993,17657,17237,6609,18172,17278,44853,30135,44764,17492,18353,32454,45051,17351,18894,18688,44869,4765,44848,45180,44863,44865,17556,31354,6875,13922,39676,18301,36472,3883,17114,30986,17335,44775,34194,45518,45043,24412,22509,17703,44671,13988,37267,9341,44836,18719,45516,28313,44856,44868,44873,6782,17839,18237,44835,10402,44766,17835,17771,18042,19078,44851,16935,45262)
Unknown column 'np.person' in 'where clause'