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 (44766,4765,44858,44869,17755,43800,18900,17756,24441,17981,18794,45515,44855,18572,28530,17009,44531,32454,39676,18237,18981,44870,18042,18652,28313,44867,45043,44878,37057,34194,44875,44687,45277,17092,18185,3883,22509,13988,18279,17492,44671,44739,10402,44765,8753,17839,13425,44863,13922,44837,17703,5993,44866,30986,44865,44854,45517,17351,18650,18996,44836,14622,18301,17771,44873,44861,24411,5388,44768,17114)
Unknown column 'np.person' in 'where clause'