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 (19078,18900,44865,44836,18427,14402,18794,44531,18042,45177,18279,28530,13922,45515,3883,18430,44849,24438,45180,6782,31354,5388,4686,45421,44739,17755,18652,16935,44858,17981,18650,44863,17839,18237,17335,17351,44687,44873,44848,18894,44671,6862,44867,45567,17835,44745,44866,17904,8753,44762,45518,44669,45561,44868,36472,18996,17657,45277,45042,44856,39676,18353,5259,18572,18172,22509,45517,17114,4765,28313)
Unknown column 'np.person' in 'where clause'