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 (18042,6782,44884,44687,18185,45229,6609,18446,18172,14402,44745,32454,45286,17009,5993,17755,44685,44837,45561,44867,18719,44768,5410,3883,45518,45277,6875,18301,30986,17835,44711,17657,45177,19057,18900,18427,13922,18648,19078,17114,17601,17756,37267,44855,44878,45567,14622,30963,17092,17771,37057,31354,44765,17278,17335,44849,18794,44853,17237,16935,17703,4686,5259,24411,43800,44851,17556,17839,44762,17848)
Unknown column 'np.person' in 'where clause'