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 (6875,13,44849,18286,18427,17771,17527,18572,44851,45346,16885,44863,44894,45262,3,45043,14622,44854,44765,17556,44669,44869,45042,45421,17703,45072,5388,10402,24441,24411,44845,17278,19057,45051,44775,5410,44855,44878,9341,5259,4765,18353,18652,17237,17114,13425,22509,45180,44689,44671,17848,18900,13922,44674,18042,17009,5993,44745,17351,45515,17601,44868,18430,44739,8753,44685,28530,44531,16935,17492)
Unknown column 'np.person' in 'where clause'