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 (13,19057,19078,36472,44855,13425,18237,17114,18042,14402,45516,18688,8753,18894,17703,44531,5388,6875,17771,44671,44640,17601,44851,16935,18185,18301,34194,17657,44870,45072,44858,45286,37057,44767,22509,44711,44745,45051,5993,44878,3,17492,13922,17351,44894,18279,44884,45517,6609,44837,44685,18719,45277,44765,44775,44861,17904,45262,44768,44863,4765,44764,44873,17755,44868,18286,44849,16885,44854,32454)
Unknown column 'np.person' in 'where clause'