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 (18353,5388,44835,13425,5410,44764,17556,37057,18172,17839,18042,17703,18572,4765,44855,17009,44858,44711,31354,18688,44854,43800,6862,44861,5993,19057,30135,13988,44853,22509,44531,44856,18446,44875,44640,6782,34194,44766,44878,17492,17527,6609,44867,44674,44866,18900,9341,36472,10402,30986,17351,18301,45043,18237,16935,44837,30963,45051,18648,45042,45567,18981,28313,3,44870,44865,45277,17278,44671,18286)
Unknown column 'np.person' in 'where clause'