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 (4686,17335,17904,44837,44762,18237,44884,45517,44867,44854,17351,44861,18185,44745,18719,6862,44878,18446,17835,17492,5410,44689,44669,30963,17981,18688,17556,44855,44869,44851,44685,28313,39676,22509,44765,32454,8753,24438,44768,17848,44845,5388,24412,18650,24411,17755,18172,45277,31354,6782,45515,13425,13922,44835,18279,17601,17527,45229,3,44836,18430,45072,18572,44711,45561,3883,14402,44739,17278,18427)
Unknown column 'np.person' in 'where clause'