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 (18894,44851,44766,32454,5993,18286,17771,19078,39676,44775,13988,44855,44845,28313,18301,18688,44767,17848,45421,14402,17981,17835,44869,44853,45286,24441,5388,17839,44739,17351,6875,28530,18446,44878,44867,18652,16885,8753,14622,30135,36472,45567,45516,18794,44764,44669,6609,6782,44861,45262,44711,45561,45229,37057,44837,18719,18042,18430,3883,30963,44858,31354,24412,45277,44762,45177,18172,44835,44671,18981)
Unknown column 'np.person' in 'where clause'