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 (44671,44865,24411,13,13922,18301,43800,17009,44849,17492,4765,44868,45229,44689,19057,45277,17981,18572,45561,6875,17278,30986,44858,44878,28530,44845,18286,19078,32454,44861,36472,17601,18427,18446,37267,31354,45517,44762,18237,13988,45567,44837,18894,44768,45346,18648,13425,28313,14622,16935,17527,44764,17835,44869,30963,39676,18900,30135,18688,45262,8753,45043,3,44685,45177,17771,44873,18172,24441,18042)
Unknown column 'np.person' in 'where clause'