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 (14402,45517,45567,44861,24412,44875,17335,17839,17237,44869,44849,36472,44711,44531,18900,45043,44848,17771,44853,19057,45180,3,17657,17601,44865,44765,6782,44766,17114,18279,18353,44851,16885,45262,45072,43800,44640,24441,17756,44739,44767,39676,18237,18042,17009,45042,17755,44845,4765,13922,44873,44671,18652,37057,45561,18894,13988,17848,18650,45515,30135,44685,44867,45177,30963,44745,18427,17492,44863,30986)
Unknown column 'np.person' in 'where clause'