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 (36472,17237,4765,16885,17755,44869,18286,39676,45346,18185,18900,45286,18446,44870,17981,17009,44762,5259,45567,18353,44878,18042,6609,44835,17703,17351,44873,45515,37267,44669,17839,18996,14622,44861,18172,44863,44856,18427,17527,4686,13425,8753,45229,44837,13,24411,17657,28313,3,45277,45051,44531,44845,3883,45561,30135,18650,6782,18430,5993,44739,31354,18572,17556,17771,17601,18794,45517,18237,44766)
Unknown column 'np.person' in 'where clause'