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 (45516,44863,17835,44640,44858,45515,44875,17556,17771,24411,13,44867,44745,13922,30135,44856,17278,3,44775,17492,6862,18794,18648,17657,45561,44685,17092,28313,45518,44861,17009,18900,45180,18430,18237,30963,14402,18446,44531,44870,17755,6782,44855,44762,24412,17756,44674,28530,32454,18042,18427,14622,44865,45277,17335,18279,44835,44878,17351,19078,18172,30986,34194,17703,5388,44711,45421,13425,18981,43800)
Unknown column 'np.person' in 'where clause'