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 (44861,37267,36472,44671,14402,44873,17092,44866,39676,44711,18572,45042,44865,44878,34194,45051,17335,44837,18237,44685,18794,5388,45421,44868,30135,22509,18648,24412,18353,44875,16935,18652,18172,18894,4686,18301,13,30963,17237,18286,18719,17835,17351,17492,43800,44775,44640,14622,6609,45072,18650,45180,17839,18981,45515,45286,45516,17657,44848,8753,45262,31354,18688,37057,30986,6782,45043,44531,3,45346)
Unknown column 'np.person' in 'where clause'