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 (44739,44856,45515,17835,5259,44674,44711,17492,5388,3883,45042,17351,18301,17114,18794,17904,18894,44855,13425,45051,44762,39676,45346,17848,30986,45177,19078,17237,17092,17703,45229,22509,44836,31354,14402,44685,13922,17556,14622,6609,45561,17527,44835,17657,5993,17839,44863,18185,44837,44765,44849,44687,44764,18042,18572,18353,6862,18279,16885,45277,44868,18996,45180,44867,44531,24438,18688,17755,45043,10402)
Unknown column 'np.person' in 'where clause'