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 (17835,44669,17657,24441,3,44711,13,24411,18446,44640,16885,45072,44768,45043,18430,37267,17556,30135,45561,4765,28313,45421,45286,44867,31354,44739,17492,18996,18279,13922,45517,44848,18652,28530,44865,44764,44745,45515,44870,44685,45180,18650,18427,6609,17755,44835,6862,44766,44767,18301,44845,44875,17981,16935,44853,17601,5388,45518,4686,44873,18900,45051,17904,45262,44855,44765,44689,44851,44531,44878)
Unknown column 'np.person' in 'where clause'