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 (18301,17335,18279,18353,17237,17657,45177,24438,45516,44685,18652,44689,13,17904,44739,18446,43800,45043,17114,44849,44775,18042,44669,17848,17351,18894,13425,44767,44764,44856,17556,3883,18237,17771,3,14622,44855,18688,44867,44869,45051,6782,44884,45421,5259,18648,18430,45286,45518,13922,44762,45180,44768,17981,44870,6862,28530,34194,44640,22509,39676,17492,45561,44858,44853,44868,45515,17601,17278,30986)
Unknown column 'np.person' in 'where clause'