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 (18719,44866,18172,44884,5410,44762,28313,44669,5388,45051,17492,6862,17114,31354,3883,24411,3,44640,44531,18286,44765,44865,44775,36472,18572,10402,30135,44835,18981,44848,14622,45421,17009,44853,19078,18185,13425,45180,18427,4686,18353,43800,13988,18894,44870,37267,17335,45277,16885,13922,44863,44858,17848,18279,17839,44867,16935,17981,44849,44687,44768,45042,44689,18648,28530,17351,44766,9341,17835,45518)
Unknown column 'np.person' in 'where clause'