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 (45346,16885,44671,44711,18794,44868,30963,17114,4765,44863,18279,44836,19057,44851,44884,44674,37057,44869,3883,45277,44854,45515,18286,17278,17351,17492,17092,39676,44856,17835,44531,17771,13,44848,17601,3,19078,44765,45286,44845,18572,17981,43800,13922,18719,28313,44768,44669,44894,13988,31354,44875,30135,17527,44835,44837,45229,17848,45177,34194,18894,45262,24441,14402,44762,17237,18353,36472,18042,18996)
Unknown column 'np.person' in 'where clause'