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 (44866,45042,44848,30135,18427,8753,44671,19078,44837,18900,16885,44685,45277,45262,45043,28530,44531,9341,17527,39676,45517,13988,44854,30963,45072,18894,18279,44739,10402,44835,14402,5259,43800,13,44849,13425,44878,17848,31354,17657,17771,37057,44855,18719,17601,44868,45561,18237,17335,4686,17351,6609,44765,44863,44851,18286,17114,44745,6862,6875,32454,18650,18652,45567,3,44711,45229,44845,5410,44762)
Unknown column 'np.person' in 'where clause'