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 (30135,17835,44869,6782,44762,45567,45051,44894,45516,44856,45515,18430,28313,45177,18996,44848,44671,44669,17278,37057,17839,45421,45286,14402,44768,45180,4686,45517,24412,18353,24438,13922,13425,18427,18172,19057,13988,44685,18794,6875,17703,13,44861,24411,43800,3883,45561,44851,32454,44854,44875,5410,18894,18286,44674,18648,9341,44711,18652,44870,44868,18237,44884,17756,44855,8753,5993,44878,18981,44739)
Unknown column 'np.person' in 'where clause'