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 (44739,17771,44853,45072,45180,16935,18286,5993,3,44861,44849,17009,44868,44764,19057,44854,30135,18648,22509,10402,39676,18237,28530,9341,44685,45286,24438,44687,18794,30986,14622,13922,44878,18172,28313,17835,17981,5259,17527,32454,44848,17756,44762,4765,6782,34194,45043,18301,45177,13425,44835,45262,24441,45042,17278,45517,44689,45561,18894,5410,17848,44674,44884,44855,14402,44865,18650,45516,24412,45567)
Unknown column 'np.person' in 'where clause'