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 (17839,37057,3883,18430,39676,6782,5388,14402,44689,18237,44863,5410,44671,45517,30135,6609,18981,17756,45262,45515,44875,44531,45561,24441,18996,34194,18172,44687,18572,44848,13,44837,18900,17771,44766,18650,45421,45567,44669,18286,45043,5259,44674,44836,44873,18185,17657,18688,17904,45277,31354,44768,17492,17848,45516,44884,24438,18894,45286,16935,18301,17755,19057,17114,28313,17601,45180,45518,44861,44765)
Unknown column 'np.person' in 'where clause'