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 (17755,18900,17335,3,44855,17657,45043,45561,44845,44765,44848,17835,19057,17556,17351,4765,34194,17601,44868,44854,44762,31354,44861,18688,18279,22509,44836,44878,44689,44671,5410,45516,17756,44849,18648,45051,17492,14402,13922,17009,45277,16885,44884,13425,18286,45229,18301,45180,18652,44867,28313,44870,6609,44863,13,17237,18237,37267,18794,3883,28530,44837,44764,30986,18650,17839,45072,45262,17092,18353)
Unknown column 'np.person' in 'where clause'