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 (14402,17351,44849,17278,45042,17114,45518,44868,17848,45229,44865,5259,17755,45517,17092,18301,24411,44671,22509,16885,44685,18185,18652,16935,44768,44687,44867,17904,44863,45567,31354,44764,18446,18172,10402,44836,17756,18572,4765,32454,44848,44837,44674,24438,45346,44689,45177,19057,44873,13922,44775,44875,44884,28313,6782,44845,17492,18894,13,18430,18353,45043,24441,13425,45180,17527,37057,6875,17839,5993)
Unknown column 'np.person' in 'where clause'