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 (17278,16935,45262,18430,44640,14402,18353,17756,18652,18894,18900,17335,17848,44851,44873,18185,44711,45072,24411,44739,4686,44894,18286,44865,17835,18572,9341,44669,28530,18237,18446,44775,45229,13922,44837,44867,17601,44764,44768,44875,44689,17755,13988,18648,43800,45516,44687,5388,44849,37267,45517,19078,44671,44855,44745,44767,10402,17092,18279,24412,16885,17351,17657,44836,39676,17237,18172,37057,17981,18688)
Unknown column 'np.person' in 'where clause'