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 (44851,5993,3,45229,14622,13988,14402,45421,17009,13,18446,18286,32454,10402,45567,39676,18185,18719,44868,17114,8753,17848,44767,44845,44762,45072,44875,22509,17771,44856,44745,37057,18237,44867,44870,5388,17835,44764,17556,18427,17657,44858,16885,17351,24438,17601,44711,17981,17492,4765,18279,17335,44853,44671,45517,24412,28313,44640,6609,6782,44674,45518,28530,30963,45262,44775,18894,45286,44884,18301)
Unknown column 'np.person' in 'where clause'