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 (45517,44866,10402,44745,44768,18430,18286,44669,44868,18794,14622,14402,18279,30986,13425,44836,5410,6609,44671,45277,13922,44854,44687,13,44855,16935,30135,5993,44894,6862,17755,44775,22509,44867,45051,45346,44865,45516,6782,44873,18648,44689,44739,17114,44762,17703,44711,32454,45561,17848,24438,8753,18446,4686,36472,13988,44870,17839,44858,44531,45042,44835,31354,44765,17657,44863,18719,17527,18688,44837)
Unknown column 'np.person' in 'where clause'