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 (4765,17335,45043,44687,45515,44669,44768,18301,17771,18427,18900,44640,17556,44855,5993,6875,44845,6862,44836,18430,44685,36472,18185,44875,24438,18688,32454,44739,14402,5388,44674,37057,13425,43800,18353,44848,17009,17703,44863,44867,44873,16935,45051,44866,17904,8753,17114,44711,18237,45517,17657,17601,18650,44865,44837,44531,44765,6782,18572,37267,44858,44884,44870,44762,19078,5410,45262,24412,22509,17092)
Unknown column 'np.person' in 'where clause'