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 (44858,17351,44685,17335,44835,18446,45262,45515,44768,44861,6862,45051,43800,45346,44836,44855,5259,44739,18279,44766,17657,31354,44711,44669,45180,4686,5993,6609,44671,5388,18648,45518,30986,44865,44894,22509,37057,13,45177,16935,6782,45561,44867,3883,44854,18794,44849,44764,44775,44866,30963,18172,45072,18652,18353,13922,17756,18286,19057,24412,44845,44762,44765,17092,45567,45277,17556,39676,3,18688)
Unknown column 'np.person' in 'where clause'