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 (17839,45072,44858,17351,18688,6862,17335,45286,44689,18572,18719,18430,3,19057,44711,13922,5993,5388,24438,30963,13,45561,17492,17657,44669,17278,32454,44867,44765,44861,44835,44687,17756,18279,44745,45346,44837,30986,44894,6782,9341,28313,18172,44739,17703,18237,18427,28530,43800,45042,18301,45516,16935,17755,44865,45277,44766,44884,44875,18894,18650,17981,44767,24411,44764,44854,45180,30135,17848,44853)
Unknown column 'np.person' in 'where clause'