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 (18430,18353,44845,16935,45262,45567,44775,39676,6782,44894,34194,44863,18185,44868,37267,18427,44768,45517,28530,44884,43800,4686,44854,44855,17009,8753,31354,18652,44848,45051,18719,3883,17835,5993,44669,30135,24441,45229,18900,45042,30986,45346,18279,5259,18301,17237,44837,17114,9341,16885,18572,45043,6609,13988,17527,10402,17556,3,5388,18894,5410,18237,18981,44640,17839,44687,45518,44856,45286,28313)
Unknown column 'np.person' in 'where clause'