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 (19057,45561,17351,44689,44884,6875,39676,34194,18650,45286,17278,17657,45517,44671,44765,18301,6609,17092,44869,17114,17009,18981,44685,28530,44745,17848,13425,24412,45515,8753,17335,43800,44531,45180,45051,13922,18427,44870,44739,14402,16935,4765,17756,45262,45229,44711,17839,45177,18719,6862,44849,36472,44873,44861,17601,44640,45042,44762,18688,44866,37267,45277,44767,45072,18894,44766,18430,44856,44868,30135)
Unknown column 'np.person' in 'where clause'