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 (6862,18286,8753,44775,14622,17771,44869,44711,17492,22509,37267,16935,18237,44884,5993,44867,44687,44739,44674,17527,45518,14402,17237,18894,45177,6875,44689,3883,18353,17835,18279,45277,17335,30986,10402,44845,3,24438,44837,44873,36472,18652,17839,30963,44835,45516,18900,28313,44875,18688,44764,18185,17904,32454,17848,45262,17278,44531,45072,45421,45346,44745,44854,45515,45042,24411,45180,44865,45561,31354)
Unknown column 'np.person' in 'where clause'