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 (44855,17755,17657,45177,18719,39676,37267,44870,28313,24441,4765,45180,18894,17981,3,44866,44865,6875,44764,44711,44768,44894,17492,18900,18301,18286,22509,44848,44854,6609,13922,17335,44836,44765,44868,6782,44873,28530,45515,37057,45286,44845,17351,18996,45072,44878,13988,3883,13,44674,16885,19057,5388,45229,45346,17703,17114,18446,31354,45561,17904,18279,18353,44689,44856,17556,43800,44837,14622,45421)
Unknown column 'np.person' in 'where clause'