Left join causes weird problems. Hat tip: John Potter.
git-svn-id: https://develop.svn.wordpress.org/trunk@2473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e3728e7b6a
commit
3540aa09ea
@ -28,7 +28,7 @@ if ((empty($link_cat)) || ($link_cat == 'all') || ($link_cat == '0')) {
|
||||
<body>
|
||||
<?php $sql = "SELECT $wpdb->links.link_url, link_rss, $wpdb->links.link_name, $wpdb->links.link_category, $wpdb->linkcategories.cat_name, link_updated
|
||||
FROM $wpdb->links
|
||||
LEFT JOIN $wpdb->linkcategories on $wpdb->links.link_category = $wpdb->linkcategories.cat_id
|
||||
JOIN $wpdb->linkcategories on $wpdb->links.link_category = $wpdb->linkcategories.cat_id
|
||||
$sql_cat
|
||||
ORDER BY $wpdb->linkcategories.cat_name, $wpdb->links.link_name \n";
|
||||
//echo("<!-- $sql -->");
|
||||
|
Loading…
Reference in New Issue
Block a user