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 (45177,24438,45515,19078,28530,44894,18981,18430,44711,18900,14622,5259,45229,18042,18286,22509,4686,44835,28313,44674,3,10402,44845,18353,16885,45286,31354,45277,44849,13922,44768,44863,44866,45516,45518,17756,4765,18279,45421,44875,44853,17492,18446,44865,6862,13,45517,45180,13425,44858,44671,44854,18719,17601,17703,5410,17009,34194,37057,18237,17657,44869,44878,17237,44685,44870,45051,19057,17114,45567)
Unknown column 'np.person' in 'where clause'