Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (28530,44775,14402,44835,44837,18172,18279,30963,44870,45561,16935,45043,18719,13922,44867,17981,16885,44855,44858,45177,17114,14622,18185,18688,44711,17092,44768,32454,44865,24441,44762,6875,5388,18900,13425,45042,17703,5993,45421,37267,4686,30135,34194,24438,45567,8753,44745,45518,30986,44765,39676,44868,18446,5259,44531,44878,18572,44849,31354,44764,10402,45286,37057,44863,44685,44640,17335,45517,44836,17771)
Unknown column 'np.person' in 'where clause'