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 (44865,17114,45286,44867,18430,44875,17556,30963,44837,6609,18894,24441,44687,17756,44854,17601,44878,5993,17278,45262,44674,24438,10402,44671,14622,18572,30986,17981,31354,45346,18981,5410,17657,24412,6782,44775,28530,17492,44845,13,44689,45072,6862,18648,17848,17009,44685,18652,18719,45277,44531,44739,45180,14402,18446,17092,28313,37057,45421,45516,24411,45229,22509,44858,17771,36472,44764,18237,44768,44869)
Unknown column 'np.person' in 'where clause'