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 (44767,45517,45516,28530,45421,18572,44711,17601,10402,44745,44689,18172,18185,18353,13,17351,44775,44866,44835,37057,44878,18648,4686,44894,44685,44531,17335,44848,17009,13922,18446,44836,24412,17556,44855,44870,5410,17981,18650,18996,28313,13425,24441,45346,44768,5993,16885,6862,17771,45072,44739,18237,44640,3883,17527,44853,44867,18301,36472,45042,6609,44863,19078,39676,18900,4765,6782,5388,44854,18042)
Unknown column 'np.person' in 'where clause'