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 (3,5993,30986,5259,17835,28530,45229,44762,44767,44687,44854,9341,44745,45177,44689,6862,17839,17092,14622,45517,18894,44739,44868,18430,5410,24438,17703,18427,17771,45042,45421,8753,44531,6782,45277,31354,6609,44884,37057,45072,18446,44845,45043,18650,13,44685,44775,44768,36472,18185,16885,17556,44848,10402,17278,45180,18719,44669,44671,17335,44858,45286,4686,44863,44875,44855,17756,44837,6875,22509)
Unknown column 'np.person' in 'where clause'