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 (18446,44855,19078,18981,18185,17756,17009,30986,18427,44640,13922,45517,17335,17848,16885,45346,24412,44854,19057,17527,44863,44894,5410,45567,45518,14622,18572,44853,43800,17601,44685,3,9341,17556,18172,28530,44873,18353,44856,39676,18652,13988,44851,34194,17492,44845,18301,44764,45177,45515,6875,44875,45180,4686,44869,13,18688,45561,24411,17351,45286,30963,45072,44745,45042,44739,18996,45516,5993,45262)
Unknown column 'np.person' in 'where clause'