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 (24438,10402,44894,4686,45180,45421,45229,18279,44858,18996,44687,44854,5993,44856,3,30963,17601,18286,17756,36472,45518,18648,44762,17009,45516,45286,22509,18353,44867,3883,13922,44868,17904,24411,44671,44863,6782,5259,13,44873,32454,44835,31354,45072,5388,45567,16935,18042,44853,17556,44767,34194,44855,13988,44870,44884,44531,24441,14622,28530,44766,18185,44764,44745,17703,8753,45043,45177,44845,4765)
Unknown column 'np.person' in 'where clause'