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 (18446,45518,45262,44854,4686,17556,45180,17351,19078,8753,44711,16935,36472,24412,17703,44845,28313,18353,45177,13425,17092,17114,44851,17527,13922,44861,44855,13988,24438,45043,39676,24411,44866,45286,45346,17657,18900,30986,45567,32454,44853,45515,44765,44685,44669,6875,31354,44767,37267,44884,45072,18042,24441,17492,44671,45517,16885,18688,45516,44894,6862,45042,44878,4765,45561,44762,18648,44868,18650,10402)
Unknown column 'np.person' in 'where clause'