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 (44711,45421,4686,44739,13425,17755,44767,5993,45072,10402,17092,17904,44848,18279,6782,14622,18648,44671,8753,6875,17771,45567,45229,44858,18652,30986,17601,14402,5410,43800,24441,3,17703,9341,17839,16885,13922,44745,44766,4765,44870,34194,24412,13,45043,16935,45042,45286,6609,17527,44854,18572,19078,36472,22509,44875,18894,44853,44687,44866,44869,44765,13988,44762,44865,32454,44837,3883,45516,17657)
Unknown column 'np.person' in 'where clause'