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 (17556,16885,37057,10402,14622,44745,17703,45180,18185,13425,18430,44671,13988,44775,44674,17009,44531,16935,45277,28313,17092,44861,24411,44739,17835,44853,17755,22509,18301,17114,44870,24438,44851,44854,18648,19057,18652,9341,44711,17527,44856,18996,24412,45043,39676,44894,17601,45515,44873,18894,8753,18688,45177,13,44762,6875,18446,17492,44875,30986,17657,44766,6609,44849,37267,45262,17756,45516,28530,17278)
Unknown column 'np.person' in 'where clause'