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 (45072,17601,44671,44894,30986,44689,44861,45180,18719,17335,17492,18446,39676,45518,44849,30963,18996,17771,18572,19057,6875,17839,8753,44878,31354,28313,44768,14402,44745,13988,44836,19078,45042,18427,17527,44870,44875,30135,18430,16935,45515,18172,44845,17835,44531,18894,44762,44858,44865,13425,44851,44739,44767,6609,45567,17114,45177,16885,24441,45516,5388,44775,17981,36472,44835,17092,18353,44854,24438,17657)
Unknown column 'np.person' in 'where clause'