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 (34194,22509,6782,18301,44711,18719,17335,17703,19057,28313,44836,44687,45421,44669,45516,44853,44858,45072,13,44878,44856,17771,17237,18572,18900,4765,44762,44863,18794,28530,30986,18648,32454,5410,18279,44870,17492,18427,44767,18996,44855,16885,44873,4686,44894,24441,43800,45043,44835,45515,44848,17835,37267,44854,17657,18430,18042,17839,6862,6609,44689,6875,45229,17601,18446,44766,24438,18650,13988,44764)
Unknown column 'np.person' in 'where clause'