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 (34194,16885,32454,17492,6875,24438,44689,28313,17657,18185,44711,30135,24441,30963,45043,17848,17278,17839,39676,45042,45262,44767,17009,44863,13425,16935,18652,44870,6862,18237,44867,18650,22509,45346,44766,37267,45229,45561,44894,18279,45180,5993,14402,44685,18427,9341,44848,44768,36472,44762,18688,24411,44640,5410,44851,44865,45072,3883,13,44674,44853,44745,44845,44869,18446,44837,6609,44775,37057,18353)
Unknown column 'np.person' in 'where clause'