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 (5388,44851,19057,18430,13425,6609,44835,6875,24441,14622,44768,17114,18900,17771,45072,44878,39676,18353,17981,4686,17092,45286,16885,44671,17657,45229,37057,18981,18042,44854,17278,22509,3,44849,18794,8753,44640,45177,17835,45516,44837,36472,18688,44856,17009,44531,17839,9341,44745,44687,17556,18279,44766,45051,10402,45515,5993,45262,17904,18172,44894,28530,18996,45561,17848,4765,30963,45421,44870,44711)
Unknown column 'np.person' in 'where clause'