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 (5410,18427,30135,45286,44853,14402,3883,44775,45043,44865,18572,4686,30963,17657,44711,44851,43800,44765,19057,17492,17556,45516,6862,37267,18794,45346,44875,45421,44767,31354,24412,28530,44531,18652,44762,19078,14622,45229,5388,44768,13,45518,45042,5259,17981,16885,44855,17756,30986,18430,44766,18446,18353,44866,16935,18042,6875,24411,17009,18301,13988,44835,45177,36472,45262,18996,34194,18719,32454,5993)
Unknown column 'np.person' in 'where clause'