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 (17092,44689,34194,45515,44766,44685,45262,6782,44869,13,44884,44867,8753,13922,44865,44671,5388,45177,44853,45042,44739,44856,17771,17278,45072,18427,18981,30963,31354,18894,6862,44863,44854,44768,19057,24441,16935,44674,17237,18996,3883,44711,36472,28313,17527,18650,44861,18794,45421,45277,45043,18301,18172,5993,18237,28530,18185,17981,44531,45517,45561,13988,17904,44640,44745,24411,30986,17839,43800,44851)
Unknown column 'np.person' in 'where clause'