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 (6609,18301,24438,17756,9341,18719,44687,44868,45180,18572,18237,17335,44762,45286,18286,44869,24411,6782,17114,45516,16885,16935,17839,18185,18042,5388,44739,45421,44865,17601,44861,17237,44849,44531,17009,18996,28530,18353,45229,17904,17351,22509,18279,17092,18794,18652,44855,18427,44764,44711,30135,44867,13922,17527,44848,44669,17848,3,44845,45561,17657,13,44775,8753,18172,19078,18900,17492,5410,30963)
Unknown column 'np.person' in 'where clause'