Yeah, that's going to give a problem with more garages per member, i've tried to check if a user has a garage with the folowing code (but that doesnt work also)
PHP Code:
$counter = mysql_query("SELECT COUNT(*) AS id FROM DTO_garage_vehicle WHERE userid = post.userid");
$num = mysql_fetch_array($counter);
$count = $num["id"];
if ($count = 0) {
}
else {
$hook_query_fields .= " , DTO_garage_vehicle.* ";
$hook_query_joins .= " LEFT JOIN DTO_garage_vehicle ON (DTO_garage_vehicle.userid = post.userid) ";
}