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 (44531,17278,14402,17657,17771,44849,17237,44711,24411,44687,45517,45043,45421,44856,44671,44739,44875,28313,45516,10402,18279,18042,13,44768,6862,44851,18286,17335,37267,45286,5410,17092,44689,17839,44836,44674,44855,44868,45518,45561,17351,17755,44775,18237,44873,17556,30986,6609,5259,13922,44837,17703,44745,17848,6875,30135,5388,3883,18981,24441,44870,45180,18794,44894,17756,13988,44764,44845,44762,18650)
Unknown column 'np.person' in 'where clause'