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 (45517,44858,44689,28313,6609,17756,18794,18301,44884,36472,44855,32454,45561,28530,17839,44837,17335,45042,44845,37267,17657,18042,30963,44849,37057,44856,18894,17351,44687,44869,44711,10402,44863,18650,17835,4765,13922,17278,16935,44531,17703,44894,44848,17771,30135,18430,18427,18996,30986,22509,44775,18688,39676,44853,19057,44762,24438,44640,44764,17556,17009,31354,44854,18286,44861,17601,45180,6782,18353,5388)
Unknown column 'np.person' in 'where clause'