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 (4686,45515,5259,24411,5388,39676,44837,45072,22509,44851,17092,45277,28313,18794,17114,17237,17904,3883,18981,14622,18237,44671,44894,44687,18996,30135,4765,44768,44848,44689,44854,31354,45561,17009,44669,44640,37267,18185,18900,16885,44835,30986,44875,17848,30963,44765,16935,44855,45177,44884,44867,44762,17835,18688,36472,44849,18719,45051,45042,24412,6782,3,17492,44685,45043,34194,44858,19057,17703,45346)
Unknown column 'np.person' in 'where clause'