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 (17092,44685,45262,14622,18794,44739,44711,34194,22509,44765,17278,44865,37267,44870,18648,44869,13922,31354,17237,18446,43800,39676,19057,24411,44861,44875,18427,18894,28313,18172,45346,30135,17527,13,8753,5410,18996,5388,44669,4686,45517,44640,36472,44837,30963,18279,32454,44866,17771,45180,5259,17756,45518,10402,17492,45229,6875,13988,44855,17755,44762,17981,18650,14402,3,18042,17839,44768,17657,44856)
Unknown column 'np.person' in 'where clause'