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 (18794,18650,44765,45262,44775,13922,14622,44855,44856,45518,17556,44836,44640,13,34194,24412,44869,44861,45043,17981,44866,18172,44867,8753,44848,28530,44884,31354,4686,44894,44764,17114,45051,18688,44863,37057,44689,36472,19057,45277,44674,44687,18042,44835,44711,18572,13425,44685,44739,17835,6862,18237,16935,44868,44762,24438,17601,9341,44745,17351,45515,44853,45180,17771,19078,17527,44845,18719,17657,39676)
Unknown column 'np.person' in 'where clause'