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 (44835,18688,3,45051,17703,31354,44845,18427,18572,45043,45177,45518,17981,24412,44745,45262,44849,30135,24438,44894,44873,18650,44531,44762,13988,28313,16935,36472,18446,43800,10402,44855,17351,44685,24441,5993,16885,17835,44768,44689,17556,17756,17114,44863,45517,18185,44856,9341,44671,6875,17839,17092,44775,19078,44765,44764,37267,17601,17904,18237,17492,24411,18652,44687,19057,45042,18981,14402,44837,18894)
Unknown column 'np.person' in 'where clause'