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 (44863,19078,44764,44711,44762,44765,45180,44669,44878,44894,44835,13988,44766,44837,5993,17492,17527,17756,44685,18237,45518,44853,17278,31354,17981,24411,17771,18185,13,17657,8753,4686,43800,17839,32454,4765,44531,18042,17835,17556,18648,44687,30135,19057,9341,18353,44640,44849,39676,24412,44865,45277,44870,45072,17335,44869,18652,45517,44867,18981,18301,44768,44875,44855,36472,17755,28530,13922,6875,16935)
Unknown column 'np.person' in 'where clause'