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 (18719,44836,24411,17114,18042,44865,6875,5259,45262,44873,17009,36472,17756,17703,44855,44863,17351,17771,18652,44848,45561,44845,19078,44851,44685,44861,24441,45567,44853,18648,44765,17492,18688,45346,44837,24438,6782,30986,44689,30963,45043,45042,45517,13,17237,45286,44878,44884,44775,18900,45177,31354,43800,44868,17981,17092,13988,17601,39676,3,16935,4686,5993,37267,44762,18286,18353,18185,28530,44768)
Unknown column 'np.person' in 'where clause'