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 (45567,13425,18900,17601,17839,18652,9341,44849,17237,44768,18894,44863,44671,16935,17351,18427,18688,17981,44775,44669,45180,18185,18794,6862,44851,36472,44866,17527,44865,32454,6782,45515,44856,44873,17703,44853,18648,13,10402,44855,44674,18353,44689,45042,44835,44836,13922,30986,18650,17756,45072,18981,16885,44739,45177,44858,17492,14402,28530,45517,44640,45262,5993,13988,24411,24412,24438,18719,17657,17835)
Unknown column 'np.person' in 'where clause'