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 (17114,44855,44868,44775,45262,18650,5259,17839,44867,4765,34194,6609,18981,45561,43800,18648,45043,44531,44767,44853,6862,44687,24438,13,17703,44849,10402,44762,17237,44711,18900,17848,44878,44674,45518,44845,44875,17492,44765,18286,24441,44858,18301,17527,45516,44851,28530,3883,45515,18894,37267,44863,16935,24412,13425,17771,44870,44866,18719,18042,17009,18794,13988,30963,45517,18572,39676,5410,18353,44848)
Unknown column 'np.person' in 'where clause'