mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Left join causes weird problems. Hat tip: John Potter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1828746711
commit
e27d276710
@ -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