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 (45043,44689,18353,44855,44845,16935,44764,30986,44856,18279,44685,18572,6609,8753,18446,17527,17755,17351,17009,44869,44669,6782,13425,44837,5259,44854,17703,13988,17835,44767,18981,4686,16885,18794,17492,44836,45567,31354,18172,45421,5410,17657,6875,18042,17981,28530,44853,14402,18652,6862,45346,44848,44875,4765,44671,18719,44863,44745,45262,37057,44868,24441,24412,43800,37267,44858,44775,18688,44894,36472)
Unknown column 'np.person' in 'where clause'