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 (44868,4686,18719,17492,45421,45515,44689,44739,44863,44669,44767,18446,5259,44865,18981,36472,6782,45072,13988,30135,44849,44884,18648,24412,18794,44764,45177,44856,18650,6875,17237,44640,44851,45516,18353,16885,6862,45229,34194,18572,45180,13,17835,18237,44745,44671,13922,17657,30986,5388,44853,45517,44685,9341,44858,44870,44866,45043,24411,39676,17278,45051,17527,18427,45561,31354,18279,17839,30963,17114)
Unknown column 'np.person' in 'where clause'