[MYSQL-1046]No database selected [SQL] SELECT * FROM all_link_links WHERE status=1