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 (30963,17755,16935,28530,10402,18286,18648,18446,6862,44739,44853,30986,18652,44669,17009,5410,9341,13425,44845,44531,39676,45043,17848,17092,17351,45042,44875,45072,24411,6782,44745,45177,44873,18688,19057,44775,44851,44767,18172,45421,18650,17492,44837,18042,45229,30135,17527,45518,37057,18719,17839,8753,3,44861,22509,44671,17335,44711,45567,37267,34194,5259,17835,44866,3883,17556,18237,44870,45346,45286)
Unknown column 'np.person' in 'where clause'