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 (4765,8753,13425,44863,18286,44836,45277,5388,44875,10402,44767,44854,45517,24441,18279,44671,18794,14402,5410,16935,44762,18237,45561,44873,44739,37267,45229,44869,6609,17237,39676,18353,44764,30986,28313,17755,24438,13,44861,44685,45286,45043,37057,6782,17527,9341,6875,17335,44766,45072,45516,45051,18650,44878,13922,18172,44689,17657,4686,44768,32454,44866,18301,19057,44775,24411,18572,45177,14622,30963)
Unknown column 'np.person' in 'where clause'