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 (13922,44870,13988,45072,18900,18446,44884,45421,24412,45561,18648,30963,5388,19057,44866,14622,45286,44766,14402,44687,18172,44868,44858,17278,28313,18237,44531,44640,45043,17657,44711,18719,18042,17114,13,44768,44739,36472,45180,44745,45517,6875,16885,44867,45262,44873,32454,44837,17556,8753,31354,34194,17351,30986,18650,44765,17848,17009,18894,44775,44762,17703,44894,3883,17904,18794,18652,17981,5259,45051)
Unknown column 'np.person' in 'where clause'