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 (18185,6862,5259,45516,44856,16885,6875,8753,17835,44674,17848,44687,44894,3883,18719,44837,44853,45262,45229,17771,17527,44878,24441,44851,17335,32454,6609,17657,18427,44858,17237,45567,5993,44768,18794,30963,30986,24412,44767,44765,18237,44531,44863,17278,45517,19057,44766,30135,45421,18301,44848,44845,44868,45277,18648,44669,44835,44875,17351,44764,44867,45180,17755,44689,13988,17839,3,44739,17601,17009)
Unknown column 'np.person' in 'where clause'