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 (45043,18430,17092,5993,44853,45561,30963,18172,45072,45229,44674,44745,45567,5410,44863,18042,44875,5259,17278,45346,44685,17755,44837,17335,18237,44775,18900,17771,44711,43800,18301,44768,17848,13988,44865,44845,34194,17009,44669,5388,44836,44851,18353,17981,18996,37267,44870,44689,44854,3,44858,31354,44861,44878,19078,18650,6782,19057,45518,44687,44866,18446,18652,17657,37057,4686,17492,6875,44868,17556)
Unknown column 'np.person' in 'where clause'