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 (30986,19078,18446,44836,17756,44873,28530,17848,13922,44762,44878,44851,45515,45517,37267,45051,13425,44858,3883,44868,18648,44640,18981,6862,18894,45180,44768,44739,31354,5259,18237,44745,39676,30135,18688,44837,24412,45262,44867,37057,18900,17601,44689,17556,17492,5388,13,8753,9341,45346,28313,44845,44767,17835,44765,17092,18185,18286,44669,24441,14402,18172,32454,18042,24438,45072,45177,45286,18301,45229)
Unknown column 'np.person' in 'where clause'