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 (24412,44687,44764,17335,45516,45567,17492,45518,45072,44674,45051,18185,18572,17278,44845,45043,17755,30986,44762,39676,44671,45180,44873,17092,17657,44836,44855,5259,45177,8753,17835,44854,44863,45517,6862,17601,17351,13922,16885,18427,18652,45277,44853,17904,9341,17839,3883,13,24441,28530,4686,30963,36472,5388,30135,44869,34194,44875,44861,44766,17556,45042,24411,44848,18446,6609,45262,14402,45561,31354)
Unknown column 'np.person' in 'where clause'