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 (8753,44739,28313,6875,44775,44851,17601,44868,44873,13922,18427,17848,18172,45515,45051,6862,5388,18894,18996,45346,18430,44878,18794,44531,16885,18237,30135,44845,44671,17492,17237,44762,44765,22509,28530,5259,45262,18652,44858,13988,5993,45043,17114,14402,44685,44674,44869,45042,18900,44689,44854,45567,18279,45180,44863,44711,44836,18042,17657,43800,18719,44861,10402,18353,17335,24411,19078,44768,5410,17703)
Unknown column 'np.person' in 'where clause'