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 (45277,44766,44861,17601,17092,45567,45286,13,18237,16885,17237,45561,43800,45042,10402,18427,18900,28313,18042,18648,13988,17981,44671,17492,44851,14402,45346,45421,18688,18430,44837,30986,30135,44867,17904,18286,19057,44878,44531,8753,44687,17755,28530,37267,45051,45517,17009,5993,44739,18185,17839,18572,6609,44767,44845,44775,13922,22509,5388,14622,45229,17657,44768,18446,18652,18172,34194,44669,44854,4765)
Unknown column 'np.person' in 'where clause'