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 (13922,18042,44854,18279,44674,44669,18427,3,44867,44875,43800,44764,18794,44853,17114,17703,18894,30135,18688,9341,17981,45518,44851,44848,6862,18172,17756,37057,39676,17771,17335,18286,18237,24411,5388,13425,45561,17755,18301,6609,44671,16885,44835,13988,4686,19057,17848,18650,18353,34194,44858,17657,5410,18652,44685,44870,44768,18430,17237,4765,22509,44884,44836,17278,31354,18648,5259,44711,45229,17092)
Unknown column 'np.person' in 'where clause'