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 (17601,45421,9341,45042,17237,18172,18688,24412,44674,18719,3,18286,24441,18446,45516,45177,44870,44861,44875,44868,17904,14622,44687,44767,18648,44762,34194,44845,45262,17657,44835,18996,3883,44863,44685,45072,19057,16935,45518,24411,44867,5993,14402,30963,18650,17092,10402,45180,4765,44836,28530,44531,18185,45346,18042,18572,8753,18652,5388,31354,6875,45561,45517,44849,18353,44768,19078,24438,44711,17556)
Unknown column 'np.person' in 'where clause'