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 (36472,18185,44866,18430,44855,17351,17527,14402,18572,18652,45072,5388,44669,18650,44835,6862,18353,44836,24411,31354,18279,44767,4686,45561,44848,44640,44856,44861,24441,44845,6782,45286,44884,45051,45518,17092,28313,44853,16885,44765,16935,44867,3883,37267,19057,6875,17756,18172,17771,17904,44762,44766,17335,17839,18996,44674,30963,18794,17278,24412,5410,32454,44687,44863,44671,17009,17492,17848,45421,5259)
Unknown column 'np.person' in 'where clause'