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,30135,13425,44711,18286,14402,44854,44867,43800,8753,18900,44767,44868,6609,3883,4686,18301,6862,45515,45072,44845,17114,18652,18996,16935,19057,44875,16885,17703,44869,18719,44856,45567,44689,28530,4765,17839,18353,5410,18185,44851,36472,45262,24441,18430,44739,34194,17351,44855,18572,5388,44873,44685,17848,44853,44865,24438,18279,18042,44863,17527,17756,22509,24412,18688,44870,10402,44762,17835,28313)
Unknown column 'np.person' in 'where clause'