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 (14622,18279,5410,16935,17278,45177,17601,17981,18185,13988,44855,44848,18719,44870,17657,6875,45262,18172,28530,44865,44884,44745,14402,18650,44867,44845,45516,44765,19057,13922,44854,4765,18981,45051,18286,30963,44687,17756,5259,31354,45515,44849,44836,24411,18430,22509,4686,30986,28313,17835,18996,32454,18446,44689,45277,45517,44671,39676,44762,17755,45042,45180,18894,44669,17237,44711,24412,17703,24438,45421)
Unknown column 'np.person' in 'where clause'