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 (39676,28313,44855,19078,44853,44765,44837,18286,14622,37057,6609,45051,4765,17755,24411,45043,5410,13,3,44863,17703,17904,45180,44671,45516,18237,44849,10402,6862,44870,18794,18427,22509,44835,17771,44711,44854,44884,5993,18353,17351,19057,44856,44848,5259,18652,18446,18572,45229,44851,44767,18894,13425,31354,28530,44762,24412,45518,44685,18648,17492,44836,17114,17556,45072,6875,17839,45561,18650,45277)
Unknown column 'np.person' in 'where clause'