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 (30963,44640,24411,18237,22509,3883,45561,18353,45042,44865,13922,44845,31354,17492,18286,18430,44856,10402,44873,28530,17335,18652,17981,44689,44861,44671,44764,34194,18650,5388,44866,18185,17237,45516,44854,18279,30135,14622,43800,44775,45262,44855,4686,30986,45286,18719,6609,36472,44870,18446,45177,44851,44875,17657,44837,13988,13425,44858,16885,17848,18648,17601,6875,17904,6862,44739,18172,17527,45043,44765)
Unknown column 'np.person' in 'where clause'