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 (24411,18172,45567,6862,5259,30963,18237,45262,3,45277,18652,45515,45421,17009,17527,13988,31354,28530,36472,44764,17351,4765,16935,19057,18648,22509,44866,18572,18894,44687,10402,17756,24412,44858,14622,44873,45518,17839,18719,44767,45051,13922,17703,28313,44848,18794,30135,44853,18900,17556,18650,17092,18353,8753,44855,17492,44865,17601,44685,43800,17335,17278,19078,44766,44640,44868,24438,44711,17848,45517)
Unknown column 'np.person' in 'where clause'