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 (18427,37057,39676,44711,44863,17335,13425,30963,6862,18446,44674,44858,44875,44739,5388,18430,5259,4686,45277,44671,8753,37267,44775,3883,45561,44835,43800,45262,17755,17351,18172,17114,45518,24412,18286,44669,44873,44867,17771,28313,44640,45567,18572,44762,17981,17756,22509,45180,44865,6782,45072,44531,44854,45177,45043,4765,18185,16935,17527,31354,17278,16885,24441,18279,45421,18353,13,45516,44685,14402)
Unknown column 'np.person' in 'where clause'