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 (18894,18996,17237,17009,44775,17351,17755,44837,44762,44671,14402,17556,13988,5388,44858,45346,18900,3,45561,18279,44865,18301,18042,44867,44531,45262,44870,44764,17756,44848,45518,44766,44845,13425,45043,44853,44687,18286,44851,17278,45177,13922,44674,44767,17657,6609,32454,34194,17114,17835,44768,45421,24441,16935,9341,4686,44855,17527,44854,44878,18572,19078,17848,45229,3883,18648,5410,28313,17492,17904)
Unknown column 'np.person' in 'where clause'