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,18981,17848,44739,17835,18286,18652,5993,44687,44863,13922,44671,5388,24438,5410,18446,30986,37267,18900,14622,30135,17009,4765,18650,44851,17904,31354,17278,44884,44531,43800,3883,39676,45180,45277,17601,37057,30963,45262,44685,44848,17492,4686,18719,32454,18353,45051,45072,44768,44765,36472,17981,44762,44854,44873,6875,13425,45286,45515,18172,5259,14402,24412,44869,44711,44894,18794,28313,44767,6609)
Unknown column 'np.person' in 'where clause'