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 (19078,17771,30135,17009,44836,18353,17657,44894,24411,45518,37267,24412,44863,18237,44674,44875,45517,45072,44884,5410,37057,44671,17839,17492,44851,43800,44835,24441,44775,18981,17904,44873,5388,17351,18286,17755,44764,44531,44849,44640,18719,44845,44837,3,24438,6782,6875,17835,16885,17556,44865,45177,44854,17092,18648,17848,8753,32454,44868,17756,44687,44711,44739,44848,44855,17527,17601,18900,45515,18042)
Unknown column 'np.person' in 'where clause'