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 (45516,44866,18572,44766,17114,6862,45072,37057,45180,44865,45177,45561,18301,4765,18185,44851,16935,3,44745,45262,31354,13425,44854,17237,13988,17492,17703,22509,17839,44837,39676,45421,44689,44869,44863,44765,44836,10402,5993,19057,44674,44856,44685,18652,9341,30135,17527,5410,18286,18894,18981,44855,44711,17848,24441,44845,18794,17278,18650,44669,36472,16885,44873,6609,17835,24438,24412,45517,18042,45567)
Unknown column 'np.person' in 'where clause'