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 (18042,44766,17756,44875,44768,45286,30135,30986,17848,8753,44739,17981,44745,45180,17556,5410,18430,44870,3883,44867,44856,10402,14622,45229,44869,22509,18172,28530,44671,44878,17703,24412,44775,44640,18650,18353,3,44861,18286,17351,18719,44884,18572,16935,17092,45262,44767,17601,44845,44674,44762,44873,13988,24438,13,31354,4765,13425,17009,18981,44689,5388,17278,37057,17755,44854,18688,18279,45561,18652)
Unknown column 'np.person' in 'where clause'