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 (39676,10402,18237,44685,45180,44861,5388,18650,17527,5993,18572,18446,17839,45567,24441,44855,17237,5410,30986,17092,18648,18353,45346,44851,45229,18301,18430,13425,44837,45421,18900,17703,18185,44863,45561,17351,5259,4686,44765,19057,45043,44531,45286,13922,44870,44687,17335,44762,18172,6782,44775,44640,45051,17756,28313,44848,44689,44745,17848,24411,45515,44878,14402,19078,18996,18286,45042,44845,37267,44849)
Unknown column 'np.person' in 'where clause'