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 (45516,44863,17835,44640,44858,45515,44875,17556,17771,24411,13,44867,44745,13922,30135,44856,17278,3,44775,17492,6862,18794,18648,17657,45561,44685,17092,28313,45518,44861,17009,18900,45180,18430,18237,30963,14402,18446,44531,44870,17755,6782,44855,44762,24412,17756,44674,28530,32454,18042,18427,14622,44865,45277,17335,18279,44835,44878,17351,19078,18172,30986,34194,17703,5388,44711,45421,13425,18981,43800)
Unknown column 'np.person' in 'where clause'