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 (44767,18981,44765,18572,44835,44867,13922,17556,17904,24411,17839,44837,17771,44873,44687,44531,45180,10402,44768,45177,44884,44685,45518,44671,44868,44855,44875,45277,16885,28313,4686,17114,18648,17657,34194,17237,44854,44861,44775,17755,44866,45517,24438,6609,18279,45286,44640,3883,44836,37267,44669,44762,28530,17009,45262,44764,44853,44894,44739,17492,13,18185,43800,44858,18237,36472,22509,44745,6862,17351)
Unknown column 'np.person' in 'where clause'