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 (37267,44867,18650,44848,44762,14402,17839,17703,18894,45262,18572,18446,18794,30963,44739,45567,24411,45051,44878,44849,4686,44856,44870,17278,17657,13922,45515,44873,44775,44853,18648,18981,9341,44837,17335,30986,17755,5259,44689,3883,44711,37057,45421,3,44745,18900,18279,17009,18719,17981,44836,18430,44766,8753,18286,43800,17835,18237,30135,44884,17527,44768,44671,44687,39676,44855,17756,18042,17114,45072)
Unknown column 'np.person' in 'where clause'