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 (6875,44640,13425,44739,17114,45421,44685,44849,36472,44768,18794,17492,18430,17278,24438,44531,45180,5388,13988,6609,17755,44868,10402,30135,44861,44835,44775,28313,45262,18279,44854,44873,5410,18353,18301,16885,17335,6782,31354,44867,43800,44837,17601,16935,4686,14402,17703,18185,22509,18237,18900,45051,3883,6862,24412,17756,44865,17839,17848,18446,17657,17904,17556,17092,44853,32454,9341,44884,44856,14622)
Unknown column 'np.person' in 'where clause'