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 (45517,16935,17657,44689,17114,17278,18652,45421,5388,17556,44739,44851,17755,44875,44531,44856,18353,45561,17351,5259,44873,6782,5410,17981,28530,18185,13425,13988,17839,45229,18900,44854,18688,24412,44845,44836,44762,44835,44674,18427,43800,44894,45042,44687,44640,30135,3,17703,44671,45286,44711,17009,44861,17771,44858,44867,18042,18301,44878,18648,3883,17527,10402,17335,17756,44837,44848,24438,44866,30986)
Unknown column 'np.person' in 'where clause'