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 (45346,44531,18446,17335,18900,44856,18981,45516,17771,44674,44745,19057,24412,44775,18996,39676,45051,44768,18652,45229,44739,18042,44671,43800,24411,5388,5259,44884,44837,9341,44687,17848,44849,45561,44868,30963,18301,36472,31354,28313,44764,45180,44869,13988,45043,44854,45177,44866,44894,44685,45515,45518,18185,18648,17835,16935,17009,44855,24438,28530,17981,18719,44711,37267,45072,18650,44762,44870,44875,45567)
Unknown column 'np.person' in 'where clause'