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 (37057,17835,9341,30135,44765,18042,44640,44836,44851,45346,44689,18353,44894,18430,44775,16885,17848,17527,18650,24411,17601,45561,45229,44685,45567,14402,44855,18648,44764,44739,44853,22509,45516,17703,6782,17092,45518,44875,34194,17556,17756,44861,44858,17114,16935,44845,44745,8753,44863,44669,17755,45421,44671,17351,44856,44878,17278,18279,17335,45515,44835,18172,45262,17237,44869,45043,44674,18900,3883,18301)
Unknown column 'np.person' in 'where clause'