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 (18430,30986,45043,44878,24441,18427,13,44869,17335,45517,5388,8753,44866,44766,5410,14622,30963,44854,44884,45262,13922,44767,44745,44856,44835,6862,17009,44687,18900,17657,18648,44858,28313,43800,18286,24412,17904,18981,45180,45072,44674,17703,45177,24411,44845,32454,17835,37057,18301,9341,44768,18185,4765,45421,45286,18572,44853,44894,45051,18650,44855,6875,45567,17278,16935,36472,44863,44685,18652,3)
Unknown column 'np.person' in 'where clause'