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 (44775,17092,45229,44739,44894,18900,44863,44851,18430,44884,37057,17657,3883,44854,6782,17556,45561,18185,4686,24412,28313,44835,18446,17771,8753,45180,44768,13922,17848,22509,6875,17601,44685,17009,6609,44711,44837,18301,44853,16885,32454,10402,37267,14622,18794,13425,44674,44762,45518,44870,18719,14402,18894,44866,44848,24441,44765,17981,44745,5993,44766,45177,44858,45262,44671,45277,44875,44764,17756,45515)
Unknown column 'np.person' in 'where clause'