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 (18446,44884,44863,17771,44861,44869,44865,6782,44765,18185,16885,17009,8753,17556,3,28530,18172,17601,18650,44745,44870,17335,18353,30135,44762,44845,44689,14402,45262,45277,36472,13988,30986,44856,44837,45518,18900,24412,17756,17848,44894,44687,44848,44764,17981,18279,4686,5388,45517,44674,18301,45421,44873,44768,4765,44878,45516,44671,44766,44711,45286,6875,44853,18719,17237,45051,44851,37057,18894,17835)
Unknown column 'np.person' in 'where clause'