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 (44775,8753,5410,24438,44685,30986,44640,9341,45515,18648,5388,45177,18794,24441,44739,24411,44854,45277,31354,44869,44868,44861,17527,18650,18427,44866,17237,18237,6609,18688,16885,45517,44894,44674,44878,17351,17657,18042,17335,14402,44873,34194,17492,17556,17848,16935,18652,5259,44875,3883,44689,6782,44845,45516,18279,45180,44768,44863,43800,45518,44762,44856,17009,45567,45346,18446,28313,45042,44867,18185)
Unknown column 'np.person' in 'where clause'