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 (45072,44766,45042,5410,44685,18237,17839,5388,17492,45180,45517,4765,32454,45567,19078,44856,14622,44866,44765,44687,17009,28313,17351,18650,18353,18900,17092,37267,44531,44854,34194,22509,18996,5259,24438,45286,17756,44739,44865,45346,18172,28530,36472,44845,18981,44863,17601,24412,44868,18042,5993,6862,18688,18894,17755,44853,45051,6782,39676,13425,45518,6875,30135,44836,17703,18427,16935,17237,18279,4686)
Unknown column 'np.person' in 'where clause'