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 (44855,18894,17335,39676,17771,30135,19057,17755,17492,45567,45346,18301,44739,30986,19078,44531,17092,45518,17278,18719,13425,37267,44674,14622,18286,44861,44854,5388,24411,44878,17756,17657,18237,44884,44869,44870,10402,17981,17601,44766,45043,6782,44687,17527,18172,44689,18430,44845,17009,8753,44858,4765,5993,18446,18652,28313,22509,17556,45072,6875,45286,18648,45517,14402,44669,44856,18650,37057,24438,44849)
Unknown column 'np.person' in 'where clause'