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 (17601,44853,17839,16885,4686,22509,13425,28530,44884,17237,45072,17835,18650,18446,44669,37057,30986,17527,44674,45229,44851,17848,45262,37267,43800,18996,44640,44855,44762,44739,17492,18042,45516,24411,17278,17904,13922,18688,18572,28313,6875,6609,44878,44531,45051,34194,45346,5388,10402,44711,44870,44835,44689,18894,18981,45517,6782,44868,45561,44863,30963,19057,36472,45277,18794,17755,18353,17009,6862,16935)
Unknown column 'np.person' in 'where clause'