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 (14402,43800,30963,17556,18172,14622,44768,17771,18430,44869,17527,18688,10402,45229,18237,5388,45518,18279,17839,18446,17756,44745,19078,18652,18286,18894,18648,24411,17657,44845,24438,24412,19057,44873,44640,31354,39676,44685,44762,44674,18353,44865,44711,36472,44858,18185,17335,17601,18650,17114,45517,44855,44835,13922,3883,6875,44894,45567,17278,37057,5410,17981,24441,17092,44884,44868,44870,44848,37267,44854)
Unknown column 'np.person' in 'where clause'