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 (44640,28313,17527,13425,44858,31354,22509,17848,45277,17009,6782,17657,17114,44762,19057,18900,44873,3,14402,18688,18996,30963,45516,6609,44848,45346,44835,14622,18172,44837,44669,18648,28530,44745,4765,17771,18279,6862,18042,44884,44866,44685,44854,44867,43800,24411,13,44689,5388,39676,17756,13988,18353,16935,44870,17278,4686,45042,37267,45051,18430,18719,9341,8753,5993,6875,18286,17237,44845,17835)
Unknown column 'np.person' in 'where clause'